mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 12:47:24 +01:00
28598a42a3
Based on work from https://github.com/ALovedOne and https://github.com/patschi
18 lines
364 B
Bash
18 lines
364 B
Bash
#!/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"
|