mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Restrict permission on log file
Incorrect permissions make logrotate fails `error: skipping "/var/log/pixelfed/pixelfed-horizon.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.`
This commit is contained in:
parent
b88ab489da
commit
f5a96000c5
1 changed files with 1 additions and 0 deletions
|
@ -223,6 +223,7 @@ ynh_script_progression --message="Creating log file..." --weight=1
|
|||
mkdir -p "/var/log/$app/"
|
||||
touch "/var/log/$app/${app}-horizon.log"
|
||||
chown -R $app: "/var/log/$app/"
|
||||
chmod 600 $app: "/var/log/$app/"
|
||||
|
||||
#=================================================
|
||||
# UPGRADE THE CRON FILE
|
||||
|
|
Loading…
Add table
Reference in a new issue