From f6b1d34d329e50d026f7ad5c74b1f84342fbe013 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 18 Jul 2019 23:10:27 +0200 Subject: [PATCH] From @Kayou --- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 3a14b54..f344bb2 100644 --- a/scripts/install +++ b/scripts/install @@ -129,7 +129,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path ynh_print_info --message="Configuring metronome..." # Create additional domains -if [[ $domain == *"domain.tld"* ]]; then +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then yunohost domain add auth.$domain yunohost domain add conference.$domain yunohost domain add jitsi-videobridge.$domain diff --git a/scripts/remove b/scripts/remove index 681f261..dffcc5f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -132,7 +132,7 @@ ynh_systemd_action --service_name=metronome --action=restart yunohost user delete $focus_user --purge # Removing additional domains -if [[ $domain == *"domain.tld"* ]]; then +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then yunohost domain remove auth.$domain yunohost domain remove conference.$domain yunohost domain remove jitsi-videobridge.$domain diff --git a/scripts/restore b/scripts/restore index 0e3aca5..89b49bd 100644 --- a/scripts/restore +++ b/scripts/restore @@ -106,7 +106,7 @@ ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port_component ynh_print_info --message="Configuring metronome..." # Create additional domains -if [[ $domain == *"domain.tld"* ]]; then +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then yunohost domain add auth.$domain yunohost domain add conference.$domain yunohost domain add jitsi-videobridge.$domain