TT#37257 Move translations upload from deployment.sh into ngcp-installer

Change-Id: Ia67f4d105cf320d60ea44c8bc7a444f15b4fdbf3
changes/53/22053/4
Alexander Lutay 7 years ago
parent d96c10556c
commit c95fc89fb7

@ -1547,18 +1547,10 @@ EXTERNAL_DEV="${EXTERNAL_DEV}"
GW="${GW}" GW="${GW}"
EXTERNAL_NETMASK="${EXTERNAL_NETMASK}" EXTERNAL_NETMASK="${EXTERNAL_NETMASK}"
EOF EOF
}
prepare_translations() { if "${TRUNK_VERSION}" && checkBootParam ngcpupload ; then
set_deploy_status "prepare_translations" echo "NGCPUPLOAD=true" >> "${TARGET}/etc/ngcp-installer/config_deploy.inc"
grml-chroot "${TARGET}" apt-get -y install ngcp-dev-tools fi
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 if "$NGCP_INSTALLER" ; then
@ -1602,10 +1594,6 @@ EOT
die "Error during installation of ngcp. Find details at: ${TARGET}/tmp/ngcp-installer.log ${TARGET}/tmp/ngcp-installer-debug.log" die "Error during installation of ngcp. Find details at: ${TARGET}/tmp/ngcp-installer.log ${TARGET}/tmp/ngcp-installer-debug.log"
fi fi
if $TRUNK_VERSION && checkBootParam ngcpupload ; then
prepare_translations
fi
# nuke files # nuke files
find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ":> \${1}" sh {} \; find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ":> \${1}" sh {} \;
:>$TARGET/var/run/utmp :>$TARGET/var/run/utmp

Loading…
Cancel
Save