You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
195 B
15 lines
195 B
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
set -uo pipefail
|
||
|
|
||
|
if (( $EUID != 0 )); then
|
||
|
echo "Should be run as root"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
journalctl --vacuum-time=7d
|
||
|
paccache -r -k 1
|
||
|
systemctl start docker
|
||
|
docker system prune -a
|