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. 9
      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 rm -f minetest-chunkymap.zip
fi fi
mv master.zip minetest-chunkymap.zip mv master.zip minetest-chunkymap.zip
unzip minetest-chunkymap.zip unzip minetest-chunkymap.zip
if [ -d "$CHUNKYMAP_INSTALLER_DIR" ]; then if [ -d "$CHUNKYMAP_INSTALLER_DIR" ]; then
rm -Rf "$CHUNKYMAP_INSTALLER_DIR" rm -Rf "$CHUNKYMAP_INSTALLER_DIR"
fi fi
mv "$HOME/Downloads/minetest-chunkymap-master" "$CHUNKYMAP_INSTALLER_DIR" mv "$HOME/Downloads/minetest-chunkymap-master" "$CHUNKYMAP_INSTALLER_DIR"
#cd minetest-chunkymap #cd minetest-chunkymap
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"

9
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 rm -Rf $HOME/minetest-stuff/minetest-chunkymap
fi fi
CHUNKYMAP_INSTALLER_DIR=$HOME/Downloads/minetest-chunkymap CHUNKYMAP_INSTALLER_DIR=$HOME/Downloads/minetest-chunkymap
CHUNKYMAP_DEST=$HOME/chunkymap
if [ ! -d "$HOME/Downloads" ]; then if [ ! -d "$HOME/Downloads" ]; then
mkdir "$HOME/Downloads" mkdir "$HOME/Downloads"
fi fi
#cd $CHUNKYMAP_INSTALLER_DIR #cd $CHUNKYMAP_INSTALLER_DIR
#chmod +x update-chunkymap-installer-only.sh #chmod +x update-chunkymap-installer-only.sh
cd $HOME/Downloads #cd $CHUNKYMAP_DEST
#if [ -f "update-chunkymap-installer-only.sh" ]; then #if [ -f "update-chunkymap-installer-only.sh" ]; then
# move misplaced file from older versions: # move misplaced file from older versions:
#mv -f update-chunkymap-installer-only.sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh" #mv -f update-chunkymap-installer-only.sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
#fi #fi
#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" sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh"
fi
#./install-chunkymap-on-ubuntu.sh #./install-chunkymap-on-ubuntu.sh
cd $HOME/Downloads
chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh" chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"
echo "" echo ""
echo "running install-chunkymap-on-ubuntu.sh..." echo "running install-chunkymap-on-ubuntu.sh..."

Loading…
Cancel
Save