Skip to content

Commit 65ee781

Browse files
authored
Merge pull request #529 from nickanderson/ENT-4506/master
ENT-4506 New files created during package changes are restricted
2 parents 4db0f78 + 3204fb4 commit 65ee781

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)