diff --git a/scripts/remove b/scripts/remove index 2940537..59b3537 100755 --- a/scripts/remove +++ b/scripts/remove @@ -112,9 +112,6 @@ fi #================================================= ynh_script_progression --message="Removing various files..." -# Remove a cron file -ynh_secure_remove --file="/etc/cron.d/$app" - # Remove the log files ynh_secure_remove --file="/var/log/$app" diff --git a/scripts/restore b/scripts/restore index 2701f8b..d737481 100755 --- a/scripts/restore +++ b/scripts/restore @@ -115,6 +115,9 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." +mkdir -p "/var/log/$app" +chown -R $app:$app "/var/log/$app" + ynh_restore_file --origin_path="/etc/logrotate.d/$app" #=================================================