1
0
Fork 0
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:
ljf 2019-05-19 19:02:35 +02:00
parent 0268e2813d
commit 40cce645f2

View file

@ -94,8 +94,12 @@ fi
#=================================================
# Backup config, plugins and themes and delete previous files
ynh_keep_if_no_upgrade themes/admin/* themes/question/* themes/survey/* plugins/*
ynh_keep application/config/config.php upload
ynh_keep_if_no_upgrade themes/admin/*
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
ynh_secure_remove $final_path
@ -132,8 +136,8 @@ set_permissions
#=================================================
# Migrate DB
cd $final_path/application/commands
ynh_exec_as "$app" php console.php updatedb
cd $final_path
ynh_exec_as "$app" php application/commands/console.php updatedb
#=================================================
# RELOAD NGINX