mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
Merge pull request #31 from YunoHost-Apps/testing
Don't overwrite the local settings during upgrade
This commit is contained in:
commit
f6d1d91942
1 changed files with 2 additions and 6 deletions
|
@ -47,12 +47,8 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Django..." --weight=1
|
ynh_script_progression --message="Configuring Django..." --weight=1
|
||||||
|
|
||||||
export prefix="${path#"/"}/"
|
# NB: We do NOT regen the settings_local.py using the template
|
||||||
prefix=${prefix%"/"}
|
# because we absolutely don't want to overwrite it
|
||||||
ynh_backup_if_checksum_is_different --file="$install_dir/coin/settings_local.py"
|
|
||||||
ynh_render_template ../conf/local.py.j2 "$install_dir/coin/settings_local.py"
|
|
||||||
ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
|
|
||||||
|
|
||||||
chmod 400 "$install_dir/coin/settings_local.py"
|
chmod 400 "$install_dir/coin/settings_local.py"
|
||||||
chown $app "$install_dir/coin/settings_local.py"
|
chown $app "$install_dir/coin/settings_local.py"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue