Browse Source

working on installer

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
dbb8db3ab8
  1. 13
      install-chunkymap-on-ubuntu-from-web.sh
  2. 11
      install-chunkymap-on-ubuntu.sh
  3. 13
      update-chunkymap-installer-only.sh
  4. 16
      update-chunkymap-on-ubuntu-from-web.sh

13
install-chunkymap-on-ubuntu-from-web.sh

@ -1,9 +1,15 @@
#!/bin/sh #!/bin/sh
CHUNKYMAP_INSTALLER_DIR=~/minetest-stuff/minetest-chunkymap cd ~
rm -Rf ~/minetest-stuff/minetest-chunkymap
CHUNKYMAP_INSTALLER_DIR=~/Downloads/minetest-chunkymap
if [ ! -d "~/Downloads" ]; then
mkdir "~/Downloads"
fi
chmod +x update-chunkymap-installer-only.sh chmod +x update-chunkymap-installer-only.sh
#./update-chunkymap-installer-only.sh: #./update-chunkymap-installer-only.sh:
cd ~/minetest-stuff cd ~/Downloads
rm master.zip 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
@ -18,6 +24,9 @@ chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-on-ubuntu-from-web.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-on-ubuntu-from-web.sh"
#mv -f "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" "~/Downloads/"
mv -f "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-on-ubuntu-from-web.sh" "~/Downloads/"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
sh "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" sh "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"

11
install-chunkymap-on-ubuntu.sh

@ -1,10 +1,15 @@
#!/bin/sh #!/bin/sh
CHUNKYMAP_INSTALLER_DIR=~/minetest-stuff/minetest-chunkymap cd ~
rm -Rf ~/minetest-stuff/minetest-chunkymap
CHUNKYMAP_INSTALLER_DIR=~/Downloads/minetest-chunkymap
if [ ! -d "~/Downloads" ]; then
mkdir "~/Downloads"
fi
MINETEST_UTIL=$HOME/minetest/util MINETEST_UTIL=$HOME/minetest/util
CHUNKYMAP_DEST=$MINETEST_UTIL CHUNKYMAP_DEST=$MINETEST_UTIL
#cd ~ #cd ~/Downloads
#rm -f ~/minetestmapper-numpy.py #rm -f ~/minetestmapper-numpy.py
#wget https://github.com/spillz/minetest/raw/master/util/minetestmapper-numpy.py #wget https://github.com/spillz/minetest/raw/master/util/minetestmapper-numpy.py
#since colors.txt is in ~/minetest/util: #since colors.txt is in ~/minetest/util:
@ -22,7 +27,7 @@ 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" cd "$CHUNKYMAP_INSTALLER_DIR"
python replace-with-current-user.py python replace-with-current-user.py # the py file only manipulates the minetest/util folder
sudo apt-get install python-numpy python-pil sudo apt-get install python-numpy python-pil

13
update-chunkymap-installer-only.sh

@ -1,7 +1,12 @@
#!/bin/sh #!/bin/sh
CHUNKYMAP_INSTALLER_DIR=~/minetest-stuff/minetest-chunkymap cd ~
rm -Rf ~/minetest-stuff/minetest-chunkymap
CHUNKYMAP_INSTALLER_DIR=~/Downloads/minetest-chunkymap
if [ ! -d "~/Downloads" ]; then
mkdir "~/Downloads"
fi
cd ~/minetest-stuff cd ~/Downloads
rm master.zip 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
@ -15,3 +20,7 @@ mv minetest-chunkymap-master "$CHUNKYMAP_INSTALLER_DIR"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-on-ubuntu-from-web.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-on-ubuntu-from-web.sh"
#mv -f "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" "~/Downloads/"
mv -f "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-on-ubuntu-from-web.sh" "~/Downloads/"

16
update-chunkymap-on-ubuntu-from-web.sh

@ -1,8 +1,16 @@
#!/bin/sh #!/bin/sh
CHUNKYMAP_INSTALLER_DIR=~/minetest-stuff/minetest-chunkymap cd ~
cd $CHUNKYMAP_INSTALLER_DIR rm -Rf ~/minetest-stuff/minetest-chunkymap
CHUNKYMAP_INSTALLER_DIR=~/Downloads/minetest-chunkymap
if [ ! -d "~/Downloads" ]; then
mkdir "~/Downloads"
fi
#cd $CHUNKYMAP_INSTALLER_DIR
chmod +x update-chunkymap-installer-only.sh chmod +x update-chunkymap-installer-only.sh
./update-chunkymap-installer-only.sh cd ~/Downloads
mv -f "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
#./install-chunkymap-on-ubuntu.sh #./install-chunkymap-on-ubuntu.sh
chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
./install-chunkymap-on-ubuntu.sh sh "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
Loading…
Cancel
Save