mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
[fix] Upgrade
This commit is contained in:
parent
0268e2813d
commit
40cce645f2
1 changed files with 8 additions and 4 deletions
|
@ -94,8 +94,12 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Backup config, plugins and themes and delete previous files
|
# Backup config, plugins and themes and delete previous files
|
||||||
ynh_keep_if_no_upgrade themes/admin/* themes/question/* themes/survey/* plugins/*
|
ynh_keep_if_no_upgrade themes/admin/*
|
||||||
ynh_keep application/config/config.php upload
|
ynh_keep_if_no_upgrade themes/question/*
|
||||||
|
ynh_keep_if_no_upgrade themes/survey/*
|
||||||
|
ynh_keep_if_no_upgrade plugins/*
|
||||||
|
ynh_keep application/config/config.php
|
||||||
|
ynh_keep upload
|
||||||
|
|
||||||
# Copie new files and restore config, plugins, upload and themes
|
# Copie new files and restore config, plugins, upload and themes
|
||||||
ynh_secure_remove $final_path
|
ynh_secure_remove $final_path
|
||||||
|
@ -132,8 +136,8 @@ set_permissions
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Migrate DB
|
# Migrate DB
|
||||||
cd $final_path/application/commands
|
cd $final_path
|
||||||
ynh_exec_as "$app" php console.php updatedb
|
ynh_exec_as "$app" php application/commands/console.php updatedb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Reference in a new issue