You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
852 B
21 lines
852 B
7 years ago
|
#!/bin/sh
|
||
|
#BROKEN: screen -t MinetestServer minetestserver --gameid minetest_next --draworigin --drawplayers --world FCAWorldMTNext
|
||
|
#BROKEN: screen -t MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld
|
||
|
#NOTE: if only title is set, screen -x must be used to resume, so use -S <name> to resume with -r <name>
|
||
|
#screen -S MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld
|
||
|
#screen -S MinetestServer /home/owner/minetest/bin/minetestserver --gameid ENLIVEN --worldname FCAGameAWorld
|
||
|
if [ -d ~/Applications/EnlivenMinetest/webapp ]; then
|
||
|
cd ~/Applications/EnlivenMinetest/webapp
|
||
|
elif [ -d ~/Documents/EnlivenMinetest/webapp ]; then
|
||
|
cd ~/Documents/GitHub/EnlivenMinetest/webapp
|
||
|
else
|
||
|
cd ~/GitHub/EnlivenMinetest/webapp
|
||
|
fi
|
||
|
|
||
|
#js app.js
|
||
|
if [ -f "`command -v node`" ]; then
|
||
7 years ago
|
node server.js
|
||
7 years ago
|
else
|
||
7 years ago
|
js server.js
|
||
7 years ago
|
fi
|