From 917909ee3673cdb806ee18408abee889cfbf05ae Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sun, 11 Apr 2021 01:51:51 +0200 Subject: [PATCH] Fix restore errors --- scripts/restore | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index f60b0c4..56c8434 100755 --- a/scripts/restore +++ b/scripts/restore @@ -91,6 +91,9 @@ ynh_script_progression --message="Installing NodeJS..." --time --weight=15 ynh_install_nodejs --nodejs_version=$nodejs_version +# Reinstall Yarn +ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" + #================================================= # RESTORE THE MYSQL DATABASE #================================================= @@ -121,15 +124,15 @@ yunohost service add $app --description="Collaborative maps and routing with a s #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="server started" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Server started" #================================================= # RESTORE VARIOUS FILES #================================================= -ynh_restore_file --origin_path="/etc/cron.d/$app" +#ynh_restore_file --origin_path="/etc/cron.d/$app" -ynh_restore_file --origin_path="/etc/$app/" +#ynh_restore_file --origin_path="/etc/$app/" #================================================= # RESTORE THE LOGROTATE CONFIGURATION @@ -144,7 +147,6 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..." --time --weight=1 -ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload #=================================================