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:
parent
98cad80c80
commit
4f279503d1
3 changed files with 3 additions and 8 deletions
|
@ -14,7 +14,7 @@
|
||||||
"url": "http://jocelyn.delalande.fr"
|
"url": "http://jocelyn.delalande.fr"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 2.4"
|
"yunohost": ">= 2.6.3"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": ["nginx", "mysql", "postfix"],
|
"services": ["nginx", "mysql", "postfix"],
|
||||||
|
|
|
@ -25,11 +25,7 @@ db_user=ihatemoney
|
||||||
secret_key=`openssl rand -base64 32`
|
secret_key=`openssl rand -base64 32`
|
||||||
mails_sender="no-reply@${domain}"
|
mails_sender="no-reply@${domain}"
|
||||||
|
|
||||||
sudo yunohost app checkurl $domain$path -a ihatemoney
|
ynh_webpath_register $app $domain $path
|
||||||
if [[ ! $? -eq 0 ]]; then
|
|
||||||
ynh_die "${domain}${path} is not available"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Configure database
|
# Configure database
|
||||||
ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd"
|
ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd"
|
||||||
|
|
|
@ -27,8 +27,7 @@ fi
|
||||||
source _common.sh
|
source _common.sh
|
||||||
|
|
||||||
|
|
||||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
ynh_webpath_register $app $domain $path
|
||||||
|| ynh_die "The path ${domain}${path} is not available for app installation."
|
|
||||||
|
|
||||||
test -d $INSTALL_DIR && ynh_die \
|
test -d $INSTALL_DIR && ynh_die \
|
||||||
"The destination directory '$INSTALL_DIR' already exists.\
|
"The destination directory '$INSTALL_DIR' already exists.\
|
||||||
|
|
Loading…
Reference in a new issue