From 6c4a5a37705bc98af9d2c49d3e9b93c05e5f32e8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Sep 2020 19:28:04 +0200 Subject: [PATCH] Revert "Update restore" This reverts commit ac7eb007f13db68bf4492a05a604adba0acafdad. --- scripts/restore | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/restore b/scripts/restore index 283d0d1..2f880fb 100755 --- a/scripts/restore +++ b/scripts/restore @@ -91,15 +91,6 @@ ynh_restore_file "/home/yunohost.app/$app" ynh_restore_file --origin_path="/usr/bin/$app" -#================================================= -# ADD SYSTEMD SERVICE -#================================================= - -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" -ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service" - -ynh_add_systemd_config - #================================================= # SECURE FILES AND DIRECTORIES #================================================= @@ -120,7 +111,7 @@ yunohost service add $app --description "Haste is an open-source pastebin softwa #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="haste@0.1.0 start" #================================================= # RESTORE THE LOGROTATE CONFIGURATION