echo "secrets.conf is ENCRYPTED, skipping."; \
rm -f /tmp/nginx-staging/secrets.conf; \
fi
- # Copy gitweb.conf if it exists
- [ -f etc/gitweb.conf ] && cp etc/gitweb.conf /tmp/nginx-staging/
+ # Copy gitweb.conf if it exists (rename to .perl to avoid Nginx *.conf include)
+ [ -f etc/gitweb.conf ] && cp etc/gitweb.conf /tmp/nginx-staging/gitweb.conf.perl
cp scripts/deploy.sh /tmp/nginx-staging/
chmod -R a+rX /tmp/nginx-staging
else
echo "secrets.conf is ENCRYPTED, skipping."; \
rm -f $(HOME)/.nginx-staging/secrets.conf; \
fi
- [ -f etc/gitweb.conf ] && cp etc/gitweb.conf $(HOME)/.nginx-staging/
+ [ -f etc/gitweb.conf ] && cp etc/gitweb.conf $(HOME)/.nginx-staging/gitweb.conf.perl
cp scripts/deploy.sh $(HOME)/.nginx-staging/
endif
sudo nginx -s reload
# Deploy gitweb.conf if it exists in staging
- if [ -f "$STAGING_DIR/gitweb.conf" ]; then
+ if [ -f "$STAGING_DIR/gitweb.conf.perl" ]; then
echo "Deploying gitweb.conf..."
# Backup existing
[ -f /etc/gitweb.conf ] && sudo cp /etc/gitweb.conf $BACKUP_DIR/gitweb.conf
- sudo cp "$STAGING_DIR/gitweb.conf" /etc/gitweb.conf
+ sudo cp "$STAGING_DIR/gitweb.conf.perl" /etc/gitweb.conf
fi
echo "✓ Deployment successful."