You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
412 B
8 lines
412 B
#!/bin/sh
|
|
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root
|
|
#python /home/owner/minetest/util/chunkymap-regen.py
|
|
#-1 FOR LESS THAN ONE MINUTE AGO:
|
|
MT_PLAYERS_ACTIVE_COUNT=$(find /var/www/html/minetest/chunkymapdata/players -type f -mmin -1 | wc -l)
|
|
if[ $MT_PLAYERS_ACTIVE_COUNT -gt 0 ]; then
|
|
flock -n /var/run/chunkymap-regen.lockfile -c /home/owner/minetest/util/chunkymap-regen.sh
|
|
fi
|