1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shaarli_ynh.git synced 2024-09-03 20:26:10 +02:00

fix logrotate rights

https://github.com/YunoHost-Apps/shaarli_ynh/issues/83
This commit is contained in:
lapineige 2023-05-11 09:56:38 +02:00 committed by GitHub
parent 0e9dd2e249
commit df19357c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,11 +76,11 @@ ynh_script_progression --message="Upgrading logrotate configuration..."
if [ -d "$install_dir/data/log.txt" ]
then
ynh_secure_remove "$install_dir/data/log.txt"
touch "$install_dir/data/log.txt"
touch "$install_dir/data/log.txt"
fi
chown $app:www-data "$install_dir/data/log.txt"
ynh_use_logrotate --non-append
ynh_use_logrotate --non-append --specific_user=$app
#=================================================
# UPGRADE FAIL2BAN