12 lines
381 B
Bash
12 lines
381 B
Bash
#!/bin/bash
|
|||
|
|
|
||
|
|
# Script location:
|
||
|
|
# /mnt/ValVol202609/valheim/every_hour.sh
|
||
|
|
#
|
||
|
|
# Script purpose:
|
||
|
|
# run periodically from crontab. Placeholder for now, just writes to log file.
|
||
|
|
|
||
|
|
# Create the log file if it does not exist yet
|
||
|
|
touch everyhour.log
|
||
|
|
|
||
|
|
tail -n9 everyhour.log >everyhour.log.tmp && mv everyhour.log.tmp everyhour.log && echo "$(date -Iseconds) everyhour run." >>everyhour.log
|