From b92a9caf2fd5c6ecb93dbe91d7fa29bbaaee0591 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 26 Feb 2016 08:47:18 -0500 Subject: [PATCH] fixed flock command and working on installer --- chunkymap-regen-loop.sh | 3 ++- install-chunkymap-on-ubuntu.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chunkymap-regen-loop.sh b/chunkymap-regen-loop.sh index d5c77bc..e164616 100644 --- a/chunkymap-regen-loop.sh +++ b/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" diff --git a/install-chunkymap-on-ubuntu.sh b/install-chunkymap-on-ubuntu.sh index 9ef4a3e..c2978e6 100644 --- a/install-chunkymap-on-ubuntu.sh +++ b/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):