Browse Source

end with newlines

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
eb6f68d79c
  1. 4
      chunkymap-players-cronjob.sh
  2. 4
      chunkymap-regen-players.bat
  3. 3
      chunkymap-regen-players.sh
  4. 2
      chunkymap-regen.py
  5. 4
      chunkymap-regen.sh
  6. 3
      install-chunkymap-on-ubuntu.sh
  7. 3
      set-minutely-crontab-job.sh
  8. 5
      set-minutely-players-crontab-job.sh
  9. 1
      web/example.php

4
chunkymap-players-cronjob.sh

@ -6,4 +6,6 @@
#MT_PLAYERS_ACTIVE_COUNT=$(find /var/www/html/minetest/chunkymapdata/players -type f -mmin -1 | wc -l) #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 #if[ $MT_PLAYERS_ACTIVE_COUNT -gt 0 ]; then
flock -n /var/run/chunkymap-regen.lockfile -c /home/owner/minetest/util/chunkymap-regen-players.sh flock -n /var/run/chunkymap-regen.lockfile -c /home/owner/minetest/util/chunkymap-regen-players.sh
#fi #fi

4
chunkymap-regen-players.bat

@ -1,3 +1,5 @@
C:\Python27\python.exe chunkymap-regen.py --skip-map=true C:\Python27\python.exe chunkymap-regen.py --skip-map=true
REM C:\Python27\python.exe chunkymap-regen.py --skip-players=true --skip-map=true REM C:\Python27\python.exe chunkymap-regen.py --skip-players=true --skip-map=true
pause pause

3
chunkymap-regen-players.sh

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root # NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root
python /home/owner/minetest/util/chunkymap-regen.py --skip-map=true python /home/owner/minetest/util/chunkymap-regen.py --skip-map=true

2
chunkymap-regen.py

@ -856,3 +856,5 @@ if __name__ == '__main__':
#input("press enter to exit...") #input("press enter to exit...")
mtchunks.run() mtchunks.run()

4
chunkymap-regen.sh

@ -1,3 +1,5 @@
#!/bin/sh #!/bin/sh
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root # NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root
python /home/owner/minetest/util/chunkymap-regen.py python /home/owner/minetest/util/chunkymap-regen.py

3
install-chunkymap-on-ubuntu.sh

@ -39,3 +39,6 @@ echo "To learn about chunkymap:"
echo "cd $CHUNKYMAP_DEST" echo "cd $CHUNKYMAP_DEST"
echo "" echo ""
# NOTE: colors.txt should ALREADY be in $HOME/minetest/util # NOTE: colors.txt should ALREADY be in $HOME/minetest/util

3
set-minutely-crontab-job.sh

@ -13,4 +13,5 @@ fi
crontab -l > "$MT_CHUNKYMAP_CRON_TMP" crontab -l > "$MT_CHUNKYMAP_CRON_TMP"
echo "* * * * * root /home/owner/minetest/util/chunkymap-cronjob" >> "$MT_CHUNKYMAP_CRON_TMP" echo "* * * * * root /home/owner/minetest/util/chunkymap-cronjob" >> "$MT_CHUNKYMAP_CRON_TMP"
crontab "$MT_CHUNKYMAP_CRON_TMP" crontab "$MT_CHUNKYMAP_CRON_TMP"
rm "$MT_CHUNKYMAP_CRON_TMP" rm "$MT_CHUNKYMAP_CRON_TMP"

5
set-minutely-players-crontab-job.sh

@ -13,4 +13,7 @@ fi
crontab -l > "$MT_CHUNKYMAP_CRON_TMP" crontab -l > "$MT_CHUNKYMAP_CRON_TMP"
echo "* * * * * root /home/owner/minetest/util/chunkymap-players-cronjob" >> "$MT_CHUNKYMAP_CRON_TMP" echo "* * * * * root /home/owner/minetest/util/chunkymap-players-cronjob" >> "$MT_CHUNKYMAP_CRON_TMP"
crontab "$MT_CHUNKYMAP_CRON_TMP" crontab "$MT_CHUNKYMAP_CRON_TMP"
rm "$MT_CHUNKYMAP_CRON_TMP" rm "$MT_CHUNKYMAP_CRON_TMP"

1
web/example.php

@ -37,3 +37,4 @@ else {
<center><small>Powered by <a href="https://github.com/expertmm/minetest-chunkymap">Chunkymap</a></small></center> <center><small>Powered by <a href="https://github.com/expertmm/minetest-chunkymap">Chunkymap</a></small></center>
</body> </body>
</html> </html>

Loading…
Cancel
Save