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:
parent
0e9dd2e249
commit
df19357c87
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue