mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-10 02:55:21 +02:00
Rebase modupdater (#267)
Based on work from https://github.com/ALovedOne and https://github.com/patschi
This commit is contained in:
committed by
Florian Kinder
parent
4ba56ee010
commit
28598a42a3
17
0.17/files/docker-update-mods.sh
Normal file
17
0.17/files/docker-update-mods.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -f /run/secrets/username ]]; then
|
||||
USERNAME=$(cat /run/secrets/username)
|
||||
fi
|
||||
|
||||
if [[ -f /run/secrets/username ]]; then
|
||||
TOKEN=$(cat /run/secrets/token)
|
||||
fi
|
||||
|
||||
if [[ -z $TOKEN ]]; then
|
||||
set -- "$(jq -j ".username, \" \", .token" "$CONFIG/server-settings.json")"
|
||||
USERNAME=$1
|
||||
TOKEN=$2
|
||||
fi
|
||||
|
||||
./update-mods.sh "$VERSION" "$MODS" "$USERNAME" "$TOKEN"
|
Reference in New Issue
Block a user