Skip to content

Fix: deploy script role_key/email bugs + Docker healthcheck URL#15

Merged
ChesnoTech merged 1 commit intodevelopfrom
fix/deploy-and-healthcheck
Mar 27, 2026
Merged

Fix: deploy script role_key/email bugs + Docker healthcheck URL#15
ChesnoTech merged 1 commit intodevelopfrom
fix/deploy-and-healthcheck

Conversation

@ChesnoTech
Copy link
Copy Markdown
Owner

Summary

Fixes 2 bugs found during live Docker testing:

  1. deploy/install.sh: role_key column doesn't exist (it's role_name), email is NOT NULL, missing must_change_password=0
  2. docker-compose.yml: healthcheck hit /activate/ (404) instead of /api/health.php

Branch Type

  • fix/ — Bug fix (→ develop)

Testing

  • Admin creation verified on fresh Docker stack
  • All 4 containers report healthy after fix

deploy/install.sh:
- Fix: acl_roles column is role_name not role_key
- Fix: admin_users.email is required (NOT NULL)
- Fix: set must_change_password=0 for initial admin
- Use ON DUPLICATE KEY UPDATE for idempotent role creation

docker-compose.yml:
- Fix: healthcheck was hitting /activate/ (404) instead of
  /api/health.php — DocumentRoot IS /var/www/html/activate
  so the correct internal URL is /api/health.php
@ChesnoTech ChesnoTech merged commit 42283ab into develop Mar 27, 2026
4 checks passed
@ChesnoTech ChesnoTech deleted the fix/deploy-and-healthcheck branch March 27, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant