From 4f6858748115df064e5557ad89e2868565e9d89d Mon Sep 17 00:00:00 2001 From: Fredy Date: Thu, 14 Jun 2018 14:02:23 +0200 Subject: #837 devel update script --- installer/pkg-generator/DEBIAN/postinst | 2 ++ .../pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/installer/pkg-generator/DEBIAN/postinst b/installer/pkg-generator/DEBIAN/postinst index 68182658..82c150e3 100755 --- a/installer/pkg-generator/DEBIAN/postinst +++ b/installer/pkg-generator/DEBIAN/postinst @@ -1344,6 +1344,8 @@ INSTVERSION=$(awk '{print $2}' $INSTALL_TARGET/doc/VERSION.txt) $STARTSERVICE +mysqlSetRootPassword "${MYSQL_ROOT_PASSWORD}" + mysqlTestConnection "${MYSQL_ROOT_PASSWORD}" if [ $? -ne 0 ]; then errorAndLog "Error while connection to mysql" diff --git a/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh b/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh index 53080333..277dcf7c 100755 --- a/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh +++ b/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh @@ -928,7 +928,11 @@ autoConfigure checkMysqlConfig $OPENGNSYS_DBUSER $OPENGNSYS_DBPASSWORD # Actualizar la BD. + +echo "DEBUG: UpdateDatabase" updateDatabase +echo "DEBUG: end UpdateDatabase" + # Actualizar ficheros complementarios del servidor updateServerFiles @@ -976,4 +980,4 @@ updateSummary echoAndLog "OpenGnsys update finished at $(date)" popd -return 0 + -- cgit v1.2.3-18-g5258