1
0
Fork 0
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:
Florent 2023-02-08 14:08:45 +01:00 committed by Florent F
parent 8448329e1a
commit 1e670288c5

View file

@ -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
#=================================================