diff --git a/Dockerfile b/Dockerfile index 0f9dba7..53f24d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY src/ ./src/ -COPY config/ ./config/ # Create non-root user for security RUN useradd -m -u 1000 appuser && \ diff --git a/setup-unraid.sh b/setup-unraid.sh index 3fbfa3d..bdb88ba 100755 --- a/setup-unraid.sh +++ b/setup-unraid.sh @@ -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