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

Fix missing app-service config file

This commit is contained in:
Josué Tille 2020-10-06 22:28:23 +02:00
parent 42a60c24c0
commit 5b826589bf
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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