1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/matterbridge_ynh.git synced 2024-09-03 19:36:24 +02:00

Update restore

This commit is contained in:
ericgaspar 2021-01-26 20:47:03 +01:00
parent 8ff8550ec8
commit 7aaf43e7c9
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -26,16 +26,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# CHECK IF THE APP CAN BE RESTORED
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1
ynh_webpath_available --domain=$domain \
|| ynh_die --message="Path not available: ${domain}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================