From 5b826589bf8eaa1b106c6bdbf8cea8650e7bd87b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 6 Oct 2020 22:28:23 +0200 Subject: [PATCH] Fix missing app-service config file --- scripts/install | 1 + scripts/upgrade | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9696f53..1354ec0 100644 --- a/scripts/install +++ b/scripts/install @@ -176,6 +176,7 @@ mkdir -p /var/lib/matrix-$app mkdir -p /var/log/matrix-$app mkdir -p /etc/matrix-$app/conf.d mkdir -p /etc/matrix-$app/app-service +echo "app_service_config_files:" > /etc/matrix-$app/conf.d/app_service.yaml # Install synapse in virtualenv install_sources diff --git a/scripts/upgrade b/scripts/upgrade index 98d9957..8b9f3f5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -386,8 +386,9 @@ cp ../sources/update_synapse_for_appservice.sh $final_path/ ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/Coturn_config_rotate.sh" ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/update_synapse_for_appservice.sh" -# Ensure app-service folder has exists (Migration) +# Ensure app-service folder has exists and the config file exit (Migration) mkdir -p /etc/matrix-$app/app-service +test -e /etc/matrix-$app/conf.d/app_service.yaml || echo "app_service_config_files:" > /etc/matrix-$app/conf.d/app_service.yaml #================================================= # ADVERTISE SERVICE IN ADMIN PANEL