mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update upgrade
This commit is contained in:
parent
6a4bee82b7
commit
fe6db924cb
1 changed files with 3 additions and 3 deletions
|
@ -217,10 +217,10 @@ if yunohost --output-as plain domain list | grep -q "^$server_name$"
|
||||||
then
|
then
|
||||||
ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/${server_name}.d/server_name.conf
|
ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/${server_name}.d/server_name.conf
|
||||||
cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf
|
cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf
|
||||||
ynh_store_file_checksum --file="/etc/nginx/conf.d/__SERVER_NAME__.d/server_name.conf"
|
ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
||||||
|
ynh_replace_string --match_string=__PORT__ --replace_string=$synapse_tls_port --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
||||||
|
ynh_store_file_checksum --file="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
||||||
fi
|
fi
|
||||||
ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
|
||||||
ynh_replace_string --match_string=__PORT__ --replace_string=$synapse_tls_port --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MIGRATION 2 : MULTINSTANCE SUPPORT
|
# MIGRATION 2 : MULTINSTANCE SUPPORT
|
||||||
|
|
Loading…
Add table
Reference in a new issue