From b3c9fc7acd1e0cc45e56c5207f58f55f67d2ec92 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 25 Sep 2012 22:12:09 +0000 Subject: [PATCH] deployment: do not use logit function in script executed inside chroot logit() isn't available inside the subshell in the chroot so don't use it there, we already have it at the according place... From: Michael Prokop --- deployment.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/deployment.sh b/deployment.sh index 55216e2..325b050 100755 --- a/deployment.sh +++ b/deployment.sh @@ -936,7 +936,6 @@ dpkg -i $INSTALLER TRUNK_VERSION=$TRUNK_VERSION SKIP_SOURCES_LIST=$SKIP_SOURCES_LIST ngcp-installer \$ROLE \$IP1 \$IP2 \$EADDR \$EIFACE 2>&1 | tee -a /tmp/ngcp-installer-debug.log RC=\${PIPESTATUS[0]} if [ \$RC -ne 0 ] ; then - logit "installer: error" echo "Fatal error while running ngcp-installer:" >&2 tail -10 /tmp/ngcp-installer.log exit \$RC @@ -950,7 +949,6 @@ dpkg -i $INSTALLER TRUNK_VERSION=$TRUNK_VERSION SKIP_SOURCES_LIST=$SKIP_SOURCES_LIST ngcp-installer \$ROLE \$IP1 \$IP2 \$EADDR \$EIFACE \$MCASTADDR 2>&1 | tee -a /tmp/ngcp-installer-debug.log RC=\${PIPESTATUS[0]} if [ \$RC -ne 0 ] ; then - logit "installer: error" echo "Fatal error while running ngcp-installer (HA v3):" >&2 tail -10 /tmp/ngcp-installer.log exit \$RC @@ -964,7 +962,6 @@ dpkg -i $INSTALLER echo y | TRUNK_VERSION=$TRUNK_VERSION SKIP_SOURCES_LIST=$SKIP_SOURCES_LIST ngcp-installer 2>&1 | tee -a /tmp/ngcp-installer-debug.log RC=\${PIPESTATUS[1]} if [ \$RC -ne 0 ] ; then - logit "installer: error" echo "Fatal error while running ngcp-installer:" >&2 tail -10 /tmp/ngcp-installer.log exit \$RC