Skip to content

Commit 3204fb4

Browse files
committed
ENT-4506 Set explicit permissions on the install log file
1 parent 9115022 commit 3204fb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packaging/common/script-templates/script-common-header-last.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ is_nova()
2323

2424
INSTLOG=/var/log/CFEngineHub-Install.log
2525
mkdir -p "$(dirname "$INSTLOG")"
26+
touch "$INSTLOG"
27+
chown root:root "$INSTLOG"
28+
chmod 600 "$INSTLOG"
2629
CONSOLE=7
2730
# Redirect most output to log file, but keep console around for custom output.
2831
case "$SCRIPT_TYPE" in

0 commit comments

Comments
 (0)