1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hedgedoc_ynh.git synced 2024-09-03 19:25:52 +02:00

Update change_url

This commit is contained in:
Éric Gaspar 2023-02-27 19:25:05 +01:00
parent a66f49108d
commit 956d3294a6

View file

@ -42,15 +42,15 @@ ynh_change_url_nginx_config
# CONFIGURE HEDGEDOC
#=================================================
ynh_backup_if_checksum_is_different --file="$final_path/config.json"
ynh_backup_if_checksum_is_different --file="$install_dir/config.json"
domain=$new_domain
url_path=${new_path#/}
ynh_add_config --template="../conf/config.json.example" --destination="$final_path/config.json"
ynh_add_config --template="../conf/config.json.example" --destination="$install_dir/config.json"
chmod 400 "$final_path/config.json"
chown $app:$app "$final_path/config.json"
chmod 400 "$install_dir/config.json"
chown $app:$app "$install_dir/config.json"
#=================================================
# GENERIC FINALISATION