fix: add DB adminwizard insert, fix test_extended bug
All checks were successful
Docker Build & Push SugarCRM 6.5 CE / build-and-push (push) Successful in 12s

This commit is contained in:
root
2026-05-24 15:06:54 +02:00
parent 707d285e54
commit 4e44aa5b7a
2 changed files with 24 additions and 1 deletions

13
init.sh
View File

@@ -102,7 +102,18 @@ SIEOF
sed -i "/'site_url' =>/a\\
'adminwizard' => array('completed' => true)," "$CONFIG_PHP" 2>/dev/null || true
fi
echo "Admin Wizard disabled"
echo "Admin Wizard disabled (config)"
# Also insert adminwizard into DB (critical for API access!)
php -r "
\$c = @mysql_connect('$DB_HOST_NAME:$DB_TCP_PORT', '$DB_USER_NAME', '$DB_PASSWORD');
if (\$c) {
mysql_select_db('$DATABASE_NAME', \$c);
mysql_query(\"INSERT INTO config (category, name, value) VALUES ('system', 'adminwizard', '{\\\"completed\\\":true}')\", \$c);
mysql_close(\$c);
}
" 2>/dev/null || true
echo "Admin Wizard disabled (DB)"
else
echo "FAILED: config.php empty after silent install!"
cat /tmp/install_output.html 2>/dev/null | head -20