add server name arg
This commit is contained in:
parent
9c8cd2ee36
commit
24ee1df599
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ then
|
|||
echo "Server is up to date, nothin todo."
|
||||
else
|
||||
new_version=`curl -s "https://api.steampowered.com/ISteamApps/UpToDateCheck/v1/?appid=440&version=${version}" | jq -r .response.required_version`
|
||||
echo "There has been an update, server version: ${version}, newest version: ${new_version}":
|
||||
curl -H "Content-Type: application/json" -d "{\"username\": \"Server Updater\", \"content\": \"There has been an update, server version: $version, newest version: $new_version\"}" $discord_webhook
|
||||
echo "$2: There has been an update, server version: ${version}, newest version: ${new_version}":
|
||||
curl -H "Content-Type: application/json" -d "{\"username\": \"Server Updater\", \"content\": \"$2: There has been an update, server version: $version, newest version: $new_version\"}" $discord_webhook
|
||||
(cd ~/docker/tf2; docker compose exec tf2dm-1 ./rcon -H 88.198.49.46 -p $1 -P $rcon_password changelevel cp_process_final)
|
||||
fi
|
||||
|
|
Reference in a new issue