mirror of
https://github.com/YunoHost-Apps/linkstack_ynh.git
synced 2024-09-03 19:36:14 +02:00
wip
This commit is contained in:
parent
200b0aa113
commit
abb7a2a2a4
2 changed files with 11 additions and 2 deletions
|
@ -70,6 +70,9 @@ popd
|
|||
|
||||
# End of installation
|
||||
ynh_secure_remove $install_dir/INSTALLING
|
||||
ynh_write_var_in_file --file="$install_dir/.env" --key="APP_DEBUG" --value="false"
|
||||
ynh_write_var_in_file --file="$install_dir/.env" --key="APP_ENV" --value="production"
|
||||
ynh_write_var_in_file --file="$install_dir/.env" --key="NOTIFY_UPDATES" --value="true"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
|
@ -28,11 +28,17 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
# Enable maintenance mode while upgrading
|
||||
ynh_write_var_in_file --file="$install_dir/.env" --key="MAINTENANCE_MODE" --value="true"
|
||||
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
# Keep .env and database.sqlite !
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep=".env database/database.sqlite"
|
||||
|
||||
# Remove this file as the app is already installed
|
||||
ynh_secure_remove $install_dir/INSTALLING
|
||||
fi
|
||||
|
||||
# $install_dir will automatically be initialized with some decent
|
||||
|
@ -40,8 +46,8 @@ fi
|
|||
# ownership to all files such as after the ynh_setup_source step
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
# Remove this file as the app is already installed
|
||||
ynh_secure_remove $install_dir/INSTALLING
|
||||
# Disable maintenance mode
|
||||
ynh_write_var_in_file --file="$install_dir/.env" --key="MAINTENANCE_MODE" --value="false"
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
|
|
Loading…
Add table
Reference in a new issue