Removing old PHP sessions files

This commit is contained in:
dpeca 2019-11-07 20:55:03 +01:00 committed by GitHub
commit 0461f03644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1590,6 +1590,9 @@ fi
echo "MAX_DBUSER_LEN=80" >> $VESTA/conf/vesta.conf
echo "================================================================"
# Removing old PHP sessions files
crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab -
#----------------------------------------------------------#
# Vesta Access Info #
#----------------------------------------------------------#