diff --git a/scripts/install b/scripts/install index 917b4ec..5c2012e 100644 --- a/scripts/install +++ b/scripts/install @@ -142,7 +142,7 @@ ynh_replace_string "__ARCHDIR__" "$arch_dir" "$final_path/script/lutim" # Making log symbolic link to /var/log touch /var/log/$app/production.log -chown $app: -R /var/log/$app +chown $app -R /var/log/$app ln -s /var/log/$app/production.log "$final_path/log/production.log" #================================================= diff --git a/scripts/restore b/scripts/restore index 176e1b9..b8fa25f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -104,7 +104,7 @@ ynh_restore_file "/etc/cron.d/$app" # Making log symbolic link to /var/log mkdir -p /var/log/$app/ touch /var/log/$app/production.log -chown $app: -R /var/log/$app +chown $app -R /var/log/$app #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index c1b2caf..2098c8d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -135,8 +135,8 @@ chown -R $app: $final_path # SETUP LOGROTATE #================================================= -ynh_use_logrotate -chown $app: -R /var/log/$app +ynh_use_logrotate --non-append +chown $app -R /var/log/$app #================================================= # SETUP SSOWAT