Browse Source

fixed flock command and working on installer

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
b92a9caf2f
  1. 3
      chunkymap-regen-loop.sh
  2. 1
      install-chunkymap-on-ubuntu.sh

3
chunkymap-regen-loop.sh

@ -1,2 +1,3 @@
#!/bin/sh
flock -n /var/run/chunkymap-loop.lockfile -c screen -t chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py
echo type screen -r to reconnect with this screen
flock -n /var/run/chunkymap-loop.lockfile -c "screen -t chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py"

1
install-chunkymap-on-ubuntu.sh

@ -41,6 +41,7 @@ cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/chunkymap-players-cronjob" "$CHUNKYMAP_D
cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/set-minutely-players-crontab-job.sh" "$CHUNKYMAP_DEST/unused/"
cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/set-minutely-crontab-job.sh" "$CHUNKYMAP_DEST/unused/"
cp -f "$CHUNKYMAP_INSTALLER_PATH/chunkymap-regen-loop.sh" "$CHUNKYMAP_DEST/"
cp --no-clobber "$CHUNKYMAP_INSTALLER_PATH/chunkymap-signals*" "$CHUNKYMAP_DEST/"
cd "$CHUNKYMAP_INSTALLER_PATH"
python replace-with-current-user.py # the py file only manipulates the minetest/util directory
# so chmod those files AFTER running the py above (since it rewrites them and therefore removes x attribute if present):

Loading…
Cancel
Save