change $NAME to $SERVER_NAME and make use of more variables
All checks were successful
Deploy / BuildandPush-Docker (push) Successful in 2m15s
All checks were successful
Deploy / BuildandPush-Docker (push) Successful in 2m15s
This commit is contained in:
parent
bba1db8885
commit
695fc9265d
@ -1,22 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="Archean-data"
|
||||
INI_DIRECTORY="Archean-data/server/server.ini"
|
||||
|
||||
if [ ! -d "$DIRECTORY" ]; then
|
||||
curl -o "$DIRECTORY/server/server.ini" --create-dirs https://git.tomatentum.net/tueem/archean-server-pelican/raw/branch/master/server.ini
|
||||
curl -o "$DIRECTORY" --create-dirs https://git.tomatentum.net/tueem/archean-server-pelican/raw/branch/master/server.ini
|
||||
fi
|
||||
|
||||
|
||||
sed "s/^game_mode=.*/game_mode=$( [ "$GAME_MODE" = "creative" ] && echo 0 || echo 1)/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^server_online=.*/server_online=$( [ "$ONLINE_MODE" = "0" ] && echo no || echo yes)/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^max_simultaneous_players=.*/max_simultaneous_players=$MAX_PLAYERS/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^password=.*/password=$PASSWORD/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^server_public_name=.*/server_public_name=$NAME/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^listen_port=.*/listen_port=$SERVER_PORT/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^spawn=.*/spawn=$SPAWN_PLANET/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^auto_save_interval_seconds=.*/auto_save_interval_seconds=$AUTOSAVE_INTERVAL/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^updates_per_second=.*/updates_per_second=$UPDATES_PER_SECOND/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed "s/^physics_steps_per_update=.*/physics_steps_per_update=$PHYSICS_UPDATES_PER_UPDATE/" Archean-data/server/server.ini > Archean-data/server/server.ini
|
||||
sed -i "s/^game_mode=.*/game_mode=$( [ "$GAME_MODE" = "creative" ] && echo 0 || echo 1)/" "$DIRECTORY"
|
||||
sed -i "s/^server_online=.*/server_online=$( [ "$ONLINE_MODE" = "0" ] && echo no || echo yes)/" "$DIRECTORY"
|
||||
sed -i "s/^max_simultaneous_players=.*/max_simultaneous_players=$MAX_PLAYERS/" "$DIRECTORY"
|
||||
sed -i "s/^password=.*/password=$PASSWORD/" "$DIRECTORY"
|
||||
sed -i "s/^server_public_name=.*/server_public_name=$SERVER_NAME/" "$DIRECTORY"
|
||||
sed -i "s/^listen_port=.*/listen_port=$SERVER_PORT/" "$DIRECTORY"
|
||||
sed -i "s/^spawn=.*/spawn=$SPAWN_PLANET/" "$DIRECTORY"
|
||||
sed -i "s/^auto_save_interval_seconds=.*/auto_save_interval_seconds=$AUTOSAVE_INTERVAL/" "$DIRECTORY"
|
||||
sed -i "s/^updates_per_second=.*/updates_per_second=$UPDATES_PER_SECOND/" "$DIRECTORY"
|
||||
sed -i "s/^physics_steps_per_update=.*/physics_steps_per_update=$PHYSICS_UPDATES_PER_UPDATE/" "$DIRECTORY"
|
||||
|
||||
cd Archean-server-alpha
|
||||
./Archean server
|
Loading…
x
Reference in New Issue
Block a user