diff --git a/scripts/restore b/scripts/restore index 5693046..fddbb8b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -18,7 +18,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" chown -R $app:www-data "$install_dir" -chown $app:$app "/var/log/$app" #================================================= # RESTORE THE DATA DIRECTORY @@ -46,11 +45,14 @@ ynh_script_progression --message="Restoring system configurations related to $ap ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +mkdir -p /var/log/$app +chown $app -R /var/log/$app + ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet ynh_restore_file --origin_path="/etc/logrotate.d/$app" - +chown $app:$app "/var/log/$app" yunohost service add $app --description="Federated shared agenda for local communities" --log="/var/log/$app/$app.log" #=================================================