From 1385d9d30a3cca65566f0e3cda56dcddae3d8ad7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 6 Nov 2021 11:00:28 +0100 Subject: [PATCH] cleaning up --- manifest.json | 6 ++---- scripts/restore | 2 -- scripts/upgrade | 5 ----- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/manifest.json b/manifest.json index 8f7c410..cfaf35b 100644 --- a/manifest.json +++ b/manifest.json @@ -38,8 +38,7 @@ "install" : [ { "name": "domain", - "type": "domain", - "example": "domain.org" + "type": "domain" }, { "name": "path", @@ -49,8 +48,7 @@ }, { "name": "admin", - "type": "user", - "example": "johndoe" + "type": "user" } ] } diff --git a/scripts/restore b/scripts/restore index cf6a184..9504bb2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -33,8 +33,6 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Validating restoration parameters..." --weight=1 -ynh_webpath_available --domain=$domain --path_url=$path_url \ - || ynh_die --message="Path not available: ${domain}${path_url}" test ! -d $final_path \ || ynh_die --message="There is already a directory: $final_path " diff --git a/scripts/upgrade b/scripts/upgrade index 89a73f3..5a74403 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -52,11 +52,6 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 -if [ -z "$admin" ]; then - admin="default_value" - ynh_app_setting_set --app=$app --key=admin --value=$admin -fi - # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all