]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Checking the mysql installatio process
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 21:48:30 +0000 (17:48 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 21:48:30 +0000 (17:48 -0400)
support/crdb.sh

index 541cdc91bff2aca72061ef1bcacbf1781dca8c53..f836baea781985fea04b93f7058d1781a2b2488d 100755 (executable)
@@ -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