mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Merge remote-tracking branch 'upstream/fix-app-service' into testing
This commit is contained in:
commit
017cce7913
3 changed files with 5 additions and 1 deletions
|
@ -176,6 +176,7 @@ mkdir -p /var/lib/matrix-$app
|
||||||
mkdir -p /var/log/matrix-$app
|
mkdir -p /var/log/matrix-$app
|
||||||
mkdir -p /etc/matrix-$app/conf.d
|
mkdir -p /etc/matrix-$app/conf.d
|
||||||
mkdir -p /etc/matrix-$app/app-service
|
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 synapse in virtualenv
|
||||||
install_sources
|
install_sources
|
||||||
|
|
|
@ -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/Coturn_config_rotate.sh"
|
||||||
ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/update_synapse_for_appservice.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
|
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
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -13,7 +13,9 @@ done
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown matrix-$app $service_config_file
|
chown matrix-$app $service_config_file
|
||||||
|
chown matrix-$app /etc/matrix-$app/app-service/*
|
||||||
chmod 600 $service_config_file
|
chmod 600 $service_config_file
|
||||||
|
chmod 600 /etc/matrix-$app/app-service/*
|
||||||
|
|
||||||
systemctl restart matrix-$app
|
systemctl restart matrix-$app
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue