mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Remove PHP sessions after migration
This commit is contained in:
parent
8448329e1a
commit
1e670288c5
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ old_app="__OLD_APP__"
|
|||
new_app="__NEW_APP__"
|
||||
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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue