From 6bfa567831098ffe507baea0d6bfddaaa93fde04 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 23 Nov 2021 07:49:40 +0100 Subject: [PATCH] Fix --- scripts/install | 1 + scripts/remove | 2 +- scripts/restore | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ae4af78..a273eb4 100755 --- a/scripts/install +++ b/scripts/install @@ -22,6 +22,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/remove b/scripts/remove index 08d2f7a..76e9d9d 100755 --- a/scripts/remove +++ b/scripts/remove @@ -36,7 +36,7 @@ ynh_secure_remove --file="$final_path" # REMOVE DATA DIR #================================================= -# Remove the app data directory with the command `yunohost app remove --purge` +# Remove the app data directory with the command `yunohost app remove lychee --purge` if [ "$YNH_APP_PURGE" == true ] then ynh_script_progression --message="Removing $app data directory..." --weight=2 diff --git a/scripts/restore b/scripts/restore index b025430..e36683b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -35,8 +35,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Validating restoration parameters..." --weight=1 -test ! -d $final_path \ - || ynh_die --message="There is already a directory: $final_path " +test ! -d $final_path || ynh_die --message="There is already a directory: $final_path " #================================================= # STANDARD RESTORATION STEPS