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
f5a96000c5
commit
2585830884
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,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/"
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue