mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Use console.php for entering/exiting maintenance mode.
Also always exit maintenance, even if script fails.
This commit is contained in:
parent
f718f5af46
commit
0cf7e06baa
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,9 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
ynh_print_info --message="Declaring files to be backed up..."
|
||||
|
||||
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 1)
|
||||
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console.php maintenance 1)
|
||||
|
||||
trap "(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console.php maintenance 0)" EXIT
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE APP MAIN DIR
|
||||
|
@ -61,8 +63,6 @@ ynh_print_info --message="Backing up the MySQL database..."
|
|||
|
||||
ynh_mysql_dump_db --database="$db_name" > db.sql
|
||||
|
||||
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 0)
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue