added systemd files for cleaning directories like /maps folder and cleaning old demos too

This commit is contained in:
christian 2021-04-17 22:49:27 +02:00
parent 5f4d803ef2
commit ef28fb9364
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,8 @@
[Unit]
Description=Deleting files from places after a certain amount of days
[Service]
Type=simple
User=nonroot
WorkingDirectory="/home/nonroot/.steam/debian-installation/steamapps/common/Counter-Strike Source/cstrike/download/maps"
ExecStart=find "/home/nonroot/.steam/debian-installation/steamapps/common/Counter-Strike Source/cstrike/download/maps" -maxdepth 1 -mtime +2 -type f -delete

View File

@ -0,0 +1,10 @@
[Unit]
Description=Runs the fileCleaner once each hour
Requires=clean_file.service
[Timer]
OnCalendar=*-*-* *:0
[Install]
WantedBy=multi-user.target