From ed8659b5e4dece0ef2e17353ffa8048841143ce5 Mon Sep 17 00:00:00 2001 From: Rafi594 Date: Wed, 23 Oct 2019 15:20:32 +0200 Subject: [PATCH] Restore fixes --- scripts/install | 2 +- scripts/restore | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 229489f..6e1e30c 100755 --- a/scripts/install +++ b/scripts/install @@ -50,7 +50,7 @@ final_path=/opt/yunohost/$app test ! -e "$final_path" || ynh_die "This path already contains a folder" # Register (book) web path -ynh_webpath_register --app=$app --domain=$domain --path_url=/ +ynh_webpath_register --app=$app --domain=$domain --path_url="/" #================================================= # STORE SETTINGS FROM MANIFEST diff --git a/scripts/restore b/scripts/restore index 17af4e3..a49b183 100755 --- a/scripts/restore +++ b/scripts/restore @@ -32,7 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= ynh_print_info --message="Validating restoration parameters..." -ynh_webpath_register --app=$app --domain=$domain --path_url=/ +ynh_webpath_register --app=$app --domain=$domain --path_url="/" test ! -d $final_path \ || ynh_die --message="There is already a directory: $final_path " @@ -104,9 +104,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_print_info --message="Reloading minetest..." -systemctl restart $app -ynh_systemd_action -l "ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:30000." -p "/var/log/$app/minetest.log" -sleep 1 +ynh_systemd_action --action=restart --line_match="Server for gameid="$app" listening on :::30000." --log_path="/var/log/$app/minetest.log" #================================================= # END OF SCRIPT