mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Merge pull request #8 from fflorent/remove-sessions-after-migration
Remove sessions after migration
This commit is contained in:
commit
8ccfa5e385
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ old_app="__OLD_APP__"
|
||||||
new_app="__NEW_APP__"
|
new_app="__NEW_APP__"
|
||||||
script_name="$0"
|
script_name="$0"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# DELETE OLD APP'S SESSIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
[ -n "$old_app" ] && find /var/lib/php/sessions/ -user "$old_app" -delete
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DELETE OLD APP'S SETTINGS
|
# DELETE OLD APP'S SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue