mirror of
https://github.com/YunoHost-Apps/bookwyrm_ynh.git
synced 2024-09-03 18:16:12 +02:00
update the .env file at upgrade
This commit is contained in:
parent
b88ee3dd48
commit
95ef3ae355
1 changed files with 10 additions and 0 deletions
|
@ -48,6 +48,16 @@ chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CONFIGURE THE INSTALL SCRIPT
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading .env file..." --weight=1
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/.env.production" --destination="$install_dir/.env"
|
||||||
|
chmod 600 $install_dir/.env
|
||||||
|
chown $app: "$install_dir/.env"
|
||||||
|
|
||||||
|
set -a; source "$install_dir/.env"; set +a
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE THEN INSTALL SCRIPT AND DEPENDENCIES
|
# CONFIGURE THEN INSTALL SCRIPT AND DEPENDENCIES
|
||||||
|
|
Loading…
Add table
Reference in a new issue