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:
parent
a66f49108d
commit
956d3294a6
1 changed files with 4 additions and 4 deletions
|
@ -42,15 +42,15 @@ ynh_change_url_nginx_config
|
||||||
# CONFIGURE HEDGEDOC
|
# 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
|
domain=$new_domain
|
||||||
url_path=${new_path#/}
|
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"
|
chmod 400 "$install_dir/config.json"
|
||||||
chown $app:$app "$final_path/config.json"
|
chown $app:$app "$install_dir/config.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue