From c935e9b4d69505ee3f1ec9c97ffad5c337feb63c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 12 May 2011 14:10:58 +0000 Subject: [PATCH] Invoke PRO ngcp-installer with arguments for automated installation. As supported since svn r5107. From: Michael Prokop --- deployment.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index cd4bfa7..fc7840d 100755 --- a/deployment.sh +++ b/deployment.sh @@ -451,11 +451,18 @@ if $NGCP_INSTALLER ; then # install and execute ngcp-installer if $PRO_EDITION ; then + # TODO - support customisation of arguments for ngcp-installer + export $ROLE + export IP1=192.168.1.52 + export IP2=192.168.1.53 + export EADDR=192.168.1.101 + export EIFACE=eth0 + cat << EOT | grml-chroot $TARGET /bin/bash PKG=ngcp-installer-latest.deb wget http://deb.sipwise.com/sppro/\$PKG dpkg -i \$PKG -yes | ngcp-installer \$IP1 \$IP2 \$EXTIP +ngcp-installer \$ROLE \$IP1 \$IP2 \$EADDR \$EIFACE RC=\$? if [ \$RC -ne 0 ] ; then echo "Fatal error while running ngcp-installer:" >&2