diff --git a/scripts/install b/scripts/install index ee7f0f2..d2bf2bb 100755 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,7 @@ if [[ $admin_user != '' ]]; then fi # Check domain/path availability -sudo yunohost app checkurl $domain$path -a $app || ynh_die "The path ${domain}${path} is not available for app installation." +sudo yunohost app register-url $app $domain $path #install php5-cli ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \ diff --git a/scripts/restore b/scripts/restore index f6b80f0..c6bf2c5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,7 +15,7 @@ domain=$(ynh_app_setting_get $app domain) path=$(ynh_app_setting_get $app path) # Check domain/path availability -sudo yunohost app checkurl $domain$path -a $app || ynh_die "The path ${domain}${path} is not available for app installation." +sudo yunohost app register-url $app $domain $path db_pass=$(ynh_app_setting_get $app mysqlpwd)