mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-24 19:32:50 +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
|