1
0
Fork 0
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:
Salamandar 2024-02-05 18:31:34 +01:00 committed by GitHub
commit f6d1d91942
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"