2021-01-23 20:04:33 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Quit if we don't have any default admins
|
2024-03-20 21:01:57 +00:00
|
|
|
if [ -z "${REMOTE_CONTROL_DEFAULT_ADMINS}" ] || [ ! -f "/data/Stardew/Stardew Valley/game/Mods/RemoteControl/config.json" ]; then
|
2021-01-23 20:04:33 +00:00
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Add default admins to the admin list
|
2024-03-20 21:01:57 +00:00
|
|
|
jq ".admins[.admins | length] |= . + ${REMOTE_CONTROL_DEFAULT_ADMINS}" "/data/Stardew/Stardew Valley/game/Mods/RemoteControl/config.json" > "/data/Stardew/Stardew Valley/game/Mods/RemoteControl/config.json.out"
|
|
|
|
mv -f "/data/Stardew/Stardew Valley/game/Mods/RemoteControl/config.json.out" "/data/Stardew/Stardew Valley/game/Mods/RemoteControl/config.json"
|