mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
chmod the log directory to prevent 666 permissions
This commit is contained in:
parent
5de02bcc15
commit
9c8c7a0d51
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ $logfile {
|
||||||
EOF
|
EOF
|
||||||
# Create the log directory, if not exist
|
# Create the log directory, if not exist
|
||||||
mkdir --parents $(dirname "$logfile")
|
mkdir --parents $(dirname "$logfile")
|
||||||
|
chmod 644 $(dirname "$logfile")
|
||||||
# Append this config to the existing config file, or replace the whole config file (depending on $customtee)
|
# Append this config to the existing config file, or replace the whole config file (depending on $customtee)
|
||||||
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app >/dev/null
|
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app >/dev/null
|
||||||
chmod 644 /etc/logrotate.d/$app
|
chmod 644 /etc/logrotate.d/$app
|
||||||
|
|
Loading…
Add table
Reference in a new issue