From 352fbc68172421f9228149c5546adcbd5066e5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 27 Feb 2017 08:11:16 +0100 Subject: [PATCH] Add link to chattroom --- README.md | 2 ++ check_process | 2 +- scripts/_common.sh | 4 ---- scripts/install | 5 ++++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0d44247..4481f93 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Riot For yunohost ================== +Yunohost chattroom with matrix : [https://riot.im/app/#/room/#yunohost:matrix.org](https://riot.im/app/#/room/#yunohost:matrix.org) + [Yunohost project](https://yunohost.org/#/) It's a webclient for matrix. For a matrix server you can install synapse on your server : https://github.com/YunoHost-Apps/synapse_ynh diff --git a/check_process b/check_process index 4c72c2d..5b48a55 100644 --- a/check_process +++ b/check_process @@ -16,7 +16,7 @@ upgrade=1 backup_restore=0 multi_instance=1 - wrong_user=1 + wrong_user=0 wrong_path=1 incorrect_path=1 corrupt_source=1 diff --git a/scripts/_common.sh b/scripts/_common.sh index 71d2919..01a265f 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -65,10 +65,6 @@ CHECK_PATH () { # Vérifie la présence du / en début de path. Et son absence fi } -CHECK_DOMAINPATH () { # Vérifie la disponibilité du path et du domaine. - sudo yunohost app checkurl $domain$path -a $app -} - CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déjà utilisé. final_path=/var/www/$app if [ -e "$final_path" ] diff --git a/scripts/install b/scripts/install index 705058b..75dea2a 100644 --- a/scripts/install +++ b/scripts/install @@ -13,9 +13,12 @@ is_public=$YNH_APP_ARG_IS_PUBLIC default_home_server=$YNH_APP_ARG_DEFAULT_HOME_SERVER CHECK_PATH # Vérifie et corrige la syntaxe du path. -CHECK_DOMAINPATH # Vérifie la disponibilité du path et du domaine. CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé. +# Check domain/path availability +sudo yunohost app checkurl "${domain}${path}" -a "$app" \ + || ynh_die "Path not available: ${domain}${path}" + # Enregistre les infos dans la config YunoHost ynh_app_setting_set $app domain $domain ynh_app_setting_set $app path $path