Enforce chmod 644(-rw-r--r--) on logrotate configuration files

This commit is contained in:
Salamandar 2022-04-15 11:34:18 +02:00
parent 5ca18c53f9
commit 7242832f59

View file

@ -90,6 +90,7 @@ $logfile {
EOF
mkdir --parents $(dirname "$logfile") # Create the log directory, if not exist
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app >/dev/null # Append this config to the existing config file, or replace the whole config file (depending on $customtee)
chmod 644 /etc/logrotate.d/$app
}
# Remove the app's logrotate config.