Browse Source

working on updater

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
c4ee2a93a2
  1. 2
      install-chunkymap-on-ubuntu.sh
  2. 2
      replace-with-current-user.py
  3. 1
      update-chunkymap-installer-only.sh

2
install-chunkymap-on-ubuntu.sh

@ -19,7 +19,7 @@ cp -f "$CHUNKYMAP_INSTALLER_DIR/chunkymap-cronjob" "$CHUNKYMAP_DEST/"
chmod +x "$CHUNKYMAP_DEST/chunkymap-cronjob" chmod +x "$CHUNKYMAP_DEST/chunkymap-cronjob"
cp -f "$CHUNKYMAP_INSTALLER_DIR/set-minutely-crontab-job.sh" "$CHUNKYMAP_DEST/" cp -f "$CHUNKYMAP_INSTALLER_DIR/set-minutely-crontab-job.sh" "$CHUNKYMAP_DEST/"
chmod +x "$CHUNKYMAP_DEST/set-minutely-crontab-job.sh" chmod +x "$CHUNKYMAP_DEST/set-minutely-crontab-job.sh"
cd "$CHUNKYMAP_INSTALLER_DIR"
python replace-with-current-user.py python replace-with-current-user.py
# NOTE: colors.txt should ALREADY be in ~/minetest/util # NOTE: colors.txt should ALREADY be in ~/minetest/util

2
replace-with-current-user.py

@ -24,7 +24,7 @@ if "\\" not in home_minetest_chunkymap_path:
line = ins.readline() line = ins.readline()
if line: if line:
line = line.replace("/home/owner", home_path) line = line.replace("/home/owner", home_path)
outs.write(line, "\n") outs.write(line+"\n")
outs.close() outs.close()
os.remove(temp_path) os.remove(temp_path)
ins.close() ins.close()

1
update-chunkymap-installer-only.sh

@ -6,6 +6,7 @@ rm master.zip
wget https://github.com/expertmm/minetest-chunkymap/archive/master.zip wget https://github.com/expertmm/minetest-chunkymap/archive/master.zip
rm -f minetest-chunkymap.zip rm -f minetest-chunkymap.zip
mv master.zip minetest-chunkymap.zip mv master.zip minetest-chunkymap.zip
rm -Rf minetest-chunkymap-master
unzip minetest-chunkymap.zip unzip minetest-chunkymap.zip
#mv minetest-chunkymap-master minetest-chunkymap #mv minetest-chunkymap-master minetest-chunkymap
rm -Rf "$CHUNKYMAP_INSTALLER_DIR" rm -Rf "$CHUNKYMAP_INSTALLER_DIR"

Loading…
Cancel
Save