add /tmp directory cleanup to run every day
This commit is contained in:
parent
bba571c4e3
commit
01bb55507f
|
@ -71,6 +71,10 @@ sudo mkdir -p /var/log/journal
|
|||
sudo cp journald.conf /etc/systemd/journald.conf
|
||||
sudo systemctl restart systemd-journald
|
||||
|
||||
# Setup periodical /tmp cleanup so we don't run out of disk space
|
||||
# - deletes anything older than 10 days from /tmp, crontab is set to run it every day at midnight
|
||||
(sudo crontab -l 2>/dev/null; echo "0 0 * * * find /tmp -type f -atime +10 -delete >/dev/null 2>&1") | sudo crontab -
|
||||
|
||||
# Setup skynet frontend.
|
||||
cd ..
|
||||
yarn
|
||||
|
|
Reference in New Issue