add build files
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
shopt -s nullglob
|
||||
|
||||
if [[ -z "$SERVERPASSWORD" ]]; then
|
||||
echo "Env Var SERVERPASSWORD is not set"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
files=( ${SAVEDIR}/*.zip )
|
||||
savefile=${files[0]}
|
||||
if [[ -z "$savefile" ]]; then
|
||||
echo "No .zip savefile found in save directory ${SAVEDIR}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Using savefile ${savefile}"
|
||||
|
||||
./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD}
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "Started Archipelago Server"
|
||||
else
|
||||
echo "Error: Failed to start server"
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user