Update restart-ins.sh
This commit is contained in:
parent
4cbc2d2b74
commit
be28b0404b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
REMOTEAPPVER=$(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public')
|
LOCALAPPVER=$(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public')
|
||||||
EXITSTATUS=$?
|
EXITSTATUS=$?
|
||||||
if [ $EXITSTATUS -eq 0 ]; then
|
if [ $EXITSTATUS -eq 0 ]; then
|
||||||
echo $REMOTEAPPVER > /opt/sandstorm-server.version
|
echo $LOCALAPPVER > /opt/sandstorm-server.version
|
||||||
docker stop sandstorm-modmap
|
docker stop sandstorm-modmap
|
||||||
docker rm sandstorm-modmap
|
docker rm sandstorm-modmap
|
||||||
docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \
|
docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue