1
0
Fork 0
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:
lapineige 2023-02-14 21:04:52 +01:00 committed by GitHub
parent b88ab489da
commit f5a96000c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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