1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

Flush sessions before upgrade

This commit is contained in:
mbugeia 2015-12-29 02:06:14 +01:00
parent aeff47e5d0
commit 039a8de71a

View file

@ -10,6 +10,9 @@ admin=$(sudo yunohost app setting $app adminusername)
email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g") email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g")
db_pwd=$(sudo yunohost app setting $app mysqlpwd) db_pwd=$(sudo yunohost app setting $app mysqlpwd)
# flush php sessions before upgrade
sudo rm -rf /var/lib/php5/session/*
final_path=/var/www/$app final_path=/var/www/$app
sudo mv $final_path $final_path.old sudo mv $final_path $final_path.old