Browse Source

make enable_server var for future use

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
e5f1792ee1
  1. 10
      webapp/install-mts.sh

10
webapp/install-mts.sh

@ -15,7 +15,7 @@ $1
END END
exit 1 exit 1
} }
enable_server=true
dest_programs="$HOME" dest_programs="$HOME"
#NOTE: $HOME is still used further down, for $HOME/.* and $HOME/i_am_dedicated_minetest_server flag file (which can be empty) #NOTE: $HOME is still used further down, for $HOME/.* and $HOME/i_am_dedicated_minetest_server flag file (which can be empty)
#TODO: change $HOME/i_am_dedicated_minetest_server to $HOME/.config/EnlivenMinetest/i_am_dedicated_minetest_server or rc file #TODO: change $HOME/i_am_dedicated_minetest_server to $HOME/.config/EnlivenMinetest/i_am_dedicated_minetest_server or rc file
@ -95,9 +95,11 @@ if [ -d minetest ]; then
echo "* enabling compile (since no `pwd`/minetest/bin/minetest but client install is enabled)" echo "* enabling compile (since no `pwd`/minetest/bin/minetest but client install is enabled)"
fi fi
fi fi
if [ ! -f minetest/bin/minetestserver ]; then if [ "@$enable_server" = "@true" ]; then
enable_compile=true if [ ! -f minetest/bin/minetestserver ]; then
echo "* enabling compile (since no `pwd`/minetest/bin/minetestserver)" enable_compile=true
echo "* enabling compile (since no `pwd`/minetest/bin/minetestserver)"
fi
fi fi
else else
echo "* enabling compile since missing `pwd`/minetest directory" echo "* enabling compile since missing `pwd`/minetest directory"

Loading…
Cancel
Save