Created
January 1, 2021 18:21
-
-
Save CodyKochmann/a7e17c99cb0e042088025e9b09b4f636 to your computer and use it in GitHub Desktop.
systemd cleanup files older than a week
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# by: Cody Kochmann | |
# set up auto cleanup of files in gitlab-runner's home that are older than 1 week | |
echo 'D /home/gitlab-runner 0755 gitlab-runner gitlab-runner 1w -' | tee -a /usr/lib/tmpfiles.d/home.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment