TT#36203 Start/stop mysql to prepare translations

Stop of mysql was added in the end of ngcp-installer in
installer.git:80ce05d706ed28e906d6b171498f3d2d9f55c84e
but mysql server is required for ngcp-prepare-translations so add
start/stop for this case.

Change-Id: Id0e030533240718517721d12647766eb283607bf
changes/97/21097/1
Mykola Malkov 8 years ago
parent e7501de456
commit 46bee7078b

@ -1771,6 +1771,18 @@ EOF
cat "${TARGET}/etc/ngcp-installer/config_deploy.inc" > /tmp/ngcp-installer-cmdline.log
}
prepare_translations() {
set_deploy_status "prepare_translations"
grml-chroot "${TARGET}" apt-get -y install ngcp-dev-tools
grml-chroot "${TARGET}" service mysql start
if ! grml-chroot "${TARGET}" ngcp-prepare-translations ; then
grml-chroot "${TARGET}" service mysql stop
die "Error: Failed to prepare ngcp-panel translations. Exiting."
fi
grml-chroot "${TARGET}" service mysql stop
set_deploy_status "ngcp-installer"
}
if "$NGCP_INSTALLER" ; then
# set INSTALLER_PATH and INSTALLER depending on release/version
get_installer_path
@ -1813,12 +1825,7 @@ EOT
fi
if $TRUNK_VERSION && checkBootParam ngcpupload ; then
set_deploy_status "prepare_translations"
grml-chroot $TARGET apt-get -y install ngcp-dev-tools
if ! grml-chroot $TARGET ngcp-prepare-translations ; then
die "Error: Failed to prepare ngcp-panel translations. Exiting."
fi
set_deploy_status "ngcp-installer"
prepare_translations
fi
# nuke files

Loading…
Cancel
Save