Update restart-ins.sh

This commit is contained in:
Andrew Marchukov 2021-04-24 12:23:41 +03:00 committed by GitHub
parent 5523440d39
commit 4cbc2d2b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,8 @@
#!/bin/bash
REMOTEAPPVER=$(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public')
EXITSTATUS=$?
if [ $EXITSTATUS -eq 0 ]; then
echo $REMOTEAPPVER > /opt/sandstorm-server.version
docker stop sandstorm-modmap
docker rm sandstorm-modmap
docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \
@ -6,8 +10,4 @@ docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \
-v /home/user/coop-modmap/Mods:/home/steam/steamcmd/sandstorm/Insurgency/Mods:rw \
-v /home/user/coop-modmap/config/ini:/home/steam/steamcmd/sandstorm/Insurgency/Saved/Config/LinuxServer:ro \
-v /home/user/coop-modmap/config/txt:/home/steam/steamcmd/sandstorm/Insurgency/Config/Server:ro andrewmhub/insurgency-sandstorm:latest
REMOTEAPPVER=$(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public')
EXITSTATUS=$?
if [ $EXITSTATUS -eq 0 ]; then
echo $REMOTEAPPVER > /opt/sandstorm-server.version
fi