Remove redundant COPY config/ from Dockerfile, add config copy to setup

Config is volume-mounted in docker-compose, making the COPY unnecessary
and causing build failures when config/ is gitignored.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michael Simard
2026-01-22 09:28:08 -06:00
parent 7c1b3eaa91
commit 9d0750ab27
2 changed files with 12 additions and 2 deletions

View File

@@ -77,7 +77,18 @@ scp -q ".env" "$UNRAID_HOST:$REMOTE_PATH/.env"
echo " .env copied"
echo ""
echo "Step 5: Testing git connectivity from Unraid..."
echo "Step 5: Copying config/ to Unraid..."
if [ -d "config" ]; then
ssh "$UNRAID_HOST" "mkdir -p $REMOTE_PATH/config"
scp -q config/* "$UNRAID_HOST:$REMOTE_PATH/config/"
echo " config/ copied"
else
echo " WARNING: Local config/ directory not found"
echo " Create config/authorized_devices.json manually on Unraid"
fi
echo ""
echo "Step 6: Testing git connectivity from Unraid..."
if ssh "$UNRAID_HOST" "ssh -o ConnectTimeout=10 -p $GIT_PORT git@$GIT_HOST 2>&1 | grep -q 'successfully authenticated'"; then
echo " Git server accessible"
else