From 48ba67e351ee5e3414e8dccfd186681a0a1329e8 Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Sun, 19 Apr 2026 14:22:49 -0700 Subject: [PATCH] setup-spoke.sh: fix syncthing-config volume ownership before starting containers --- spoke/setup-spoke.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spoke/setup-spoke.sh b/spoke/setup-spoke.sh index ff9781f..1ecde89 100755 --- a/spoke/setup-spoke.sh +++ b/spoke/setup-spoke.sh @@ -375,6 +375,11 @@ docker build \ --build-arg GID="$(id -g "$SPOKE_USER")" \ -t spoke-autossh . +header "Fixing Syncthing Volume Permissions" +info "Setting correct ownership on syncthing-config volume..." +docker run --rm -v syncthing-config:/var/syncthing/config alpine chown -R "${SPOKE_UID}:${SPOKE_GID}" /var/syncthing/config +info "Syncthing volume permissions set." + header "Starting Containers" TUNNEL_UP="false" for ATTEMPT in 1 2 3; do