From f8c6c0baa9e81054c4142b145d78cd653941a625 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Fri, 1 Dec 2023 18:41:36 +0100 Subject: [PATCH] missing logs at restore --- scripts/restore | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/restore b/scripts/restore index c709920..5260e45 100755 --- a/scripts/restore +++ b/scripts/restore @@ -50,14 +50,6 @@ ynh_script_progression --message="Registering Synapse app-service" --weight=1 $install_dir/bin/python3 -m mautrix_telegram -g -c $install_dir/config.yaml -r "etc/matrix-$synapse_instance/app-service/$app.yaml" /opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh || echo "Synapse can't restart with the appservice configuration" -#================================================= -# RESTORE SYSTEMD -#================================================= -ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -systemctl enable $app.service --quiet - #================================================= # RESTORE THE LOGROTATE CONFIGURATION #================================================= @@ -69,6 +61,14 @@ chmod -R 600 "/var/log/$app" chmod 700 "/var/log/$app" chown -R $app:$app /var/log/$app +#================================================= +# RESTORE SYSTEMD +#================================================= +ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 + +ynh_restore_file --origin_path="/etc/systemd/system/$app.service" +systemctl enable $app.service --quiet + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================