mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-12-29 09:51:54 +01:00
9 lines
163 B
Bash
9 lines
163 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -uo pipefail
|
||
|
|
||
|
# Delete logs older than 7 days
|
||
|
sudo journalctl --vacuum-time=7days
|
||
|
|
||
|
# Delete other archived log files
|
||
|
sudo rm /var/log/*.gz
|