diff --git a/docker/php/entrypoint.sh b/docker/php/entrypoint.sh index ce5354d..e49ce59 100644 --- a/docker/php/entrypoint.sh +++ b/docker/php/entrypoint.sh @@ -33,7 +33,7 @@ if [ "$HAS_TABLES" != "1" ]; then fi if [ "$IS_SETUP" != "1" ]; then - echo "[entrypoint] Running setup (first boot or recovery from failed setup)..." + echo "[entrypoint] Running first-time setup..." $DRUSH en -y views views_ui field_ui text options link datetime && \ echo "[entrypoint] Core modules enabled." || echo "[entrypoint] WARNING: core modules failed." @@ -44,25 +44,18 @@ if [ "$IS_SETUP" != "1" ]; then $DRUSH en -y riverside_pt && \ echo "[entrypoint] riverside_pt enabled." || echo "[entrypoint] WARNING: riverside_pt failed." - $DRUSH config:set system.site page.front /home -y && \ - echo "[entrypoint] Front page set." || echo "[entrypoint] WARNING: front page config failed." - $DRUSH theme:enable starterkit_theme claro_compact -y && \ $DRUSH config:set system.theme default starterkit_theme -y && \ $DRUSH config:set system.theme admin claro_compact -y && \ echo "[entrypoint] Themes set." || echo "[entrypoint] WARNING: theme enable failed." - if ls /var/www/html/config/sync/*.yml >/dev/null 2>&1; then - echo "[entrypoint] Importing configuration from sync dir..." - $DRUSH config:import --partial -y || echo "[entrypoint] WARNING: config import failed." - fi + echo "[entrypoint] First-time setup complete." +fi - echo "[entrypoint] Setup complete." -else - echo "[entrypoint] Setup already complete, importing configuration..." - $DRUSH config:import -y >/dev/null 2>&1 && \ - echo "[entrypoint] Config imported." || \ - echo "[entrypoint] No config to import, continuing." +if ls /var/www/html/config/sync/*.yml >/dev/null 2>&1; then + echo "[entrypoint] Importing configuration..." + $DRUSH config:import -y && \ + echo "[entrypoint] Config imported." || echo "[entrypoint] WARNING: config import failed." fi npm run build --prefix /var/www/html >/dev/null 2>&1 && echo "[entrypoint] Tailwind built." || echo "[entrypoint] WARNING: Tailwind build failed."