Skip to content

Commit 0e27135

Browse files
committed
Don't persist DOCKER_MODS between runs
1 parent 475e270 commit 0e27135

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

root/app/update-mods.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ find_docker_mods() {
3535
}
3636

3737
# Main script loop
38+
39+
# Reset DOCKER_MODS to whatever value the user passed into the container at creation time
40+
DOCKER_MODS="${DOCKER_MODS_STATIC}"
41+
3842
if [[ -e "/var/run/docker.sock" ]] || [[ -n "${DOCKER_HOST}" ]]; then
3943
find_docker_mods "${DOCKER_HOST:-docker.sock}" "default"
4044
fi

root/etc/s6-overlay/s6-rc.d/init-modmanager-config/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ fi
1717

1818
echo "[mod-init] Mod updates will run every 6 hours at ${CRON_MINS} minutes past the hour. Next update will be at $(date -d${NEXT_HOUR}:${CRON_MINS} '+%H:%m')."
1919

20+
printf %s "${DOCKER_MODS}" > /run/s6/container_environment/DOCKER_MODS_STATIC
21+
2022
/app/update-mods.sh

0 commit comments

Comments
 (0)