Browse Source

working on installer

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
3013c83051
  1. 2
      update-chunkymap-installer-only.sh
  2. 11
      update-chunkymap-on-ubuntu-from-web.sh

2
update-chunkymap-installer-only.sh

@ -23,11 +23,13 @@ if [ -f minetest-chunkymap.zip ]; then
rm -f minetest-chunkymap.zip
fi
mv master.zip minetest-chunkymap.zip
unzip minetest-chunkymap.zip
if [ -d "$CHUNKYMAP_INSTALLER_DIR" ]; then
rm -Rf "$CHUNKYMAP_INSTALLER_DIR"
fi
mv "$HOME/Downloads/minetest-chunkymap-master" "$CHUNKYMAP_INSTALLER_DIR"
#cd minetest-chunkymap
chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
chmod +x "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"

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

@ -4,19 +4,26 @@ if [ -d "$HOME/minetest-stuff/minetest-chunkymap" ]; then
rm -Rf $HOME/minetest-stuff/minetest-chunkymap
fi
CHUNKYMAP_INSTALLER_DIR=$HOME/Downloads/minetest-chunkymap
CHUNKYMAP_DEST=$HOME/chunkymap
if [ ! -d "$HOME/Downloads" ]; then
mkdir "$HOME/Downloads"
fi
#cd $CHUNKYMAP_INSTALLER_DIR
#chmod +x update-chunkymap-installer-only.sh
cd $HOME/Downloads
#cd $CHUNKYMAP_DEST
#if [ -f "update-chunkymap-installer-only.sh" ]; then
# move misplaced file from older versions:
#mv -f update-chunkymap-installer-only.sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
#fi
sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
#sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
if [ -d "$CHUNKYMAP_DEST/update-chunkymap-installer-only.sh" ]; then
sh "$CHUNKYMAP_DEST/update-chunkymap-installer-only.sh"
else
sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
fi
#./install-chunkymap-on-ubuntu.sh
cd $HOME/Downloads
chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
echo ""
echo "running install-chunkymap-on-ubuntu.sh..."

Loading…
Cancel
Save