1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Add check_process

This commit is contained in:
Josué Tille 2017-02-18 11:41:31 +01:00
parent 930536f4d2
commit f4805d6996
2 changed files with 35 additions and 29 deletions

View file

@ -1,27 +1,35 @@
;; Test complet ;; General
auto_remove=1 auto_remove=1
; Manifest # Commentaire ignoré
domain="domain.tld" (DOMAIN) ; Manifest
path="/path" (PATH) domain="$DOMAIN" (DOMAIN)
admin="john" (USER) path="$PATH" (PATH)
language="fr" is_public=1 (PUBLIC|public=1|private=0)
is_public="Yes" (PUBLIC|public=Yes|private=No) ; Checks
password="pass" (PASSWORD) pkg_linter=1
port="666" (PORT) setup_sub_dir=1
; Checks setup_root=1
pkg_linter=1 setup_nourl=0
setup_sub_dir=1 setup_private=1
setup_root=1 setup_public=1
setup_nourl=0 upgrade=1
setup_private=1 backup_restore=1
setup_public=1 multi_instance=0
upgrade=1 wrong_user=1
backup_restore=1 wrong_path=1
multi_instance=1 incorrect_path=1
wrong_user=1 corrupt_source=1
wrong_path=1 fail_download_source=1
incorrect_path=1 port_already_use=1 (8008)
corrupt_source=0 final_path_already_use=1
fail_download_source=0 ;;; Levels
port_already_use=1 Level 1=auto
final_path_already_use=0 Level 2=auto
Level 3=auto
Level 4=1
Level 5=auto
Level 6=auto
Level 7=auto
Level 8=0
Level 9=0
Level 10=0

View file

@ -12,10 +12,8 @@ path=$(ynh_app_setting_get $app path)
is_public=$(ynh_app_setting_get $app is_public) is_public=$(ynh_app_setting_get $app is_public)
synapse_port=$(ynh_app_setting_get $app synapse_port) synapse_port=$(ynh_app_setting_get $app synapse_port)
synapse_tls_port=$(ynh_app_setting_get $app synapse_tls_port) synapse_tls_port=$(ynh_app_setting_get $app synapse_tls_port)
turnserver_dbpass=$(ynh_app_setting_get "$app" turnserver_mysqlpwd)
turnserver_tls_port=$(ynh_app_setting_get $app turnserver_tls_port) turnserver_tls_port=$(ynh_app_setting_get $app turnserver_tls_port)
turnserver_pwd=$(ynh_app_setting_get $app turnserver_pwd) turnserver_pwd=$(ynh_app_setting_get $app turnserver_pwd)
turnserver_dbuser="turnserver"
CHECK_PATH # Vérifie et corrige la syntaxe du path. CHECK_PATH # Vérifie et corrige la syntaxe du path.