summaryrefslogtreecommitdiffstats
path: root/installer/pkg-generator
diff options
context:
space:
mode:
Diffstat (limited to 'installer/pkg-generator')
-rwxr-xr-xinstaller/pkg-generator/DEBIAN/postinst2
-rwxr-xr-xinstaller/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh6
2 files changed, 7 insertions, 1 deletions
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
+