1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Switch to non-deprecated helper: checkurl → ynh_webpath_register

Iso-functionnal commit. Simply removes a warning.
This commit is contained in:
Jocelyn Delalande 2018-11-25 17:11:09 +01:00
parent 98cad80c80
commit 4f279503d1
3 changed files with 3 additions and 8 deletions

View file

@ -14,7 +14,7 @@
"url": "http://jocelyn.delalande.fr"
},
"requirements": {
"yunohost": ">= 2.4"
"yunohost": ">= 2.6.3"
},
"multi_instance": false,
"services": ["nginx", "mysql", "postfix"],

View file

@ -25,11 +25,7 @@ db_user=ihatemoney
secret_key=`openssl rand -base64 32`
mails_sender="no-reply@${domain}"
sudo yunohost app checkurl $domain$path -a ihatemoney
if [[ ! $? -eq 0 ]]; then
ynh_die "${domain}${path} is not available"
fi
ynh_webpath_register $app $domain $path
# Configure database
ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd"

View file

@ -27,8 +27,7 @@ fi
source _common.sh
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| ynh_die "The path ${domain}${path} is not available for app installation."
ynh_webpath_register $app $domain $path
test -d $INSTALL_DIR && ynh_die \
"The destination directory '$INSTALL_DIR' already exists.\