From: Jean-Marc Pigeon (Delson) Date: Thu, 26 Jun 2025 21:48:30 +0000 (-0400) Subject: Checking the mysql installatio process X-Git-Tag: tag-0.10~4 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=d182b0735e239ac4ec37f2e59ba8119731f5a5d2;p=jmp%2Fmailleur Checking the mysql installatio process --- diff --git a/support/crdb.sh b/support/crdb.sh index 541cdc9..f836bae 100755 --- a/support/crdb.sh +++ b/support/crdb.sh @@ -38,6 +38,7 @@ case "$DB_TYPE" in ;; "MYSQL" ) SQL="/usr/bin/mariadb" + MSQL="/usr/bin/mariadb -U $APPNAME -q" /etc/rc.d/init.d/mysqld status if [ $? != 0 ] ; then echo "MySQL serveur NOT found up and running (exiting!)" @@ -92,6 +93,7 @@ if [ -n "$MSQL" ] ; then DIST=`/usr/sbin/receiver -v | cut -d '-' -f2` #is this de developpement version? if [ "$DIST" = "dvl" ] ; then + # set a minimal test database cpp -P -D$DB_TYPE /usr/share/$APPNAME/sql/datatest.sql | $MSQL fi fi