1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grist_ynh.git synced 2024-09-03 20:36:18 +02:00

Preserve custom.env accross upgrades

This commit is contained in:
Florent 2024-05-27 11:01:24 +02:00
parent 7fec378df2
commit 6fdfe6850a

View file

@ -83,14 +83,10 @@ ynh_use_logrotate --non-append
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="default.env" --destination="$install_dir/default.env"
ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
chmod 400 "$install_dir/default.env"
chown $app:$app "$install_dir/default.env"
chmod 700 "$data_dir/custom.env"
chown $app:$app "$data_dir/custom.env"
#=================================================
# START SYSTEMD SERVICE
#=================================================