-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart
More file actions
executable file
·18 lines (16 loc) · 670 Bytes
/
start
File metadata and controls
executable file
·18 lines (16 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
sudo mkdir -p appdata/space-engineers/bins/SpaceEngineersDedicated
sudo mkdir -p appdata/space-engineers/bins/steamcmd
sudo mkdir -p appdata/space-engineers/config/World
sudo mkdir -p appdata/space-engineers/config/Plugins
if [ ! -f ./appdata/space-engineers/config/World/Sandbox.sbc ]; then
echo "World not found, initalizing empty star system..."
sudo unzip -n star-system.zip -d ./appdata/space-engineers/config
fi
#container executes server as 1000:1000
if [ "$(stat -c '%u' appdata)" != "1000" ]; then
echo "Setting owner of appdata to UID 1000"
sudo chown -R 1000:1000 appdata
fi
sudo docker-compose up -d
sudo docker-compose logs -f