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 committed by Josue-T
parent 930536f4d2
commit d4aad10bc0
2 changed files with 35 additions and 29 deletions

View file

@ -1,13 +1,10 @@
;; Test complet ;; General
auto_remove=1 auto_remove=1
# Commentaire ignoré
; Manifest ; Manifest
domain="domain.tld" (DOMAIN) domain="$DOMAIN" (DOMAIN)
path="/path" (PATH) path="$PATH" (PATH)
admin="john" (USER) is_public=1 (PUBLIC|public=1|private=0)
language="fr"
is_public="Yes" (PUBLIC|public=Yes|private=No)
password="pass" (PASSWORD)
port="666" (PORT)
; Checks ; Checks
pkg_linter=1 pkg_linter=1
setup_sub_dir=1 setup_sub_dir=1
@ -17,11 +14,22 @@
setup_public=1 setup_public=1
upgrade=1 upgrade=1
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=0
wrong_user=1 wrong_user=1
wrong_path=1 wrong_path=1
incorrect_path=1 incorrect_path=1
corrupt_source=0 corrupt_source=1
fail_download_source=0 fail_download_source=1
port_already_use=1 port_already_use=1 (8008)
final_path_already_use=0 final_path_already_use=1
;;; Levels
Level 1=auto
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.