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

restore: replace deprecated yunohost app checkurl

This commit is contained in:
Pierre de La Morinerie 2017-10-12 11:39:21 +05:30
parent f6bef01487
commit 6e15ed6634

View file

@ -21,6 +21,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
is_public=$(ynh_app_setting_get $app is_public)
path_url="/"
final_path="/var/www/$app"
data_path="/home/yunohost.app/$app"
db_name="$app"
@ -30,7 +31,7 @@ db_user="mmuser"
# CHECK IF THE APP CAN BE RESTORED
#=================================================
yunohost app checkurl "${domain}" -a "$app" \
ynh_webpath_available $domain $path_url \
|| ynh_die "Path not available: ${domain}"
test ! -d $final_path \
|| ynh_die "There is already a directory: $final_path "