Update restart-ins.sh

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

View file

@ -1,8 +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')
LOCALAPPVER=$(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
echo $LOCALAPPVER > /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 \