From e7eda522d29ff99f6b6841000c4230a4073fa411 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 19 Aug 2016 15:42:30 +0200 Subject: [PATCH] MT#21439 remove sipwise.cnf retreival and ngcp-sync-constants invoke * sipwise.cnf retreival has moved into the ngcp-installer * ngcp-sync-constants is no longer used Change-Id: Ibe497dff2d20c10abc770cadbed020b8dad9d72f (cherry picked from commit 42447d5aa3aaa1420ad41fd12fdf69ea2d171bb4) --- deployment.sh | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/deployment.sh b/deployment.sh index 072db74..2e3a47b 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1660,32 +1660,6 @@ EOT die "Error during installation of ngcp. Find details at: $TARGET/tmp/ngcp-installer.log $TARGET/tmp/ngcp-installer-debug.log" fi - if "$RETRIEVE_MGMT_CONFIG" ; then - if [ "$ROLE" = "sp1" ] ; then - password=sipwise - - logit "Retrieving sipwise.cnf from management server (using password ${password})" - wget --timeout=30 -O "${TARGET}"/etc/mysql/sipwise.cnf "${MANAGEMENT_IP}:3000/dbconfig/sipwise_cnf?password=${password}" - logit "Copying sipwise.cnf to /mnt/glusterfs/shared_config" - chroot $TARGET cp /etc/mysql/sipwise.cnf /mnt/glusterfs/shared_config/sipwise.cnf - - logit "Sync constants" - chroot $TARGET ngcp-sync-constants -r - fi - fi - - case "$CROLE" in - proxy) - if grml-chroot $TARGET /etc/init.d/mysql start 2 ; then - logit "Configuring MySQL second instance" - chroot $TARGET /usr/share/ngcp-ngcpcfg/helper/check-for-mysql 10 2 - chroot $TARGET ngcp-sync-constants -r -s --local-repl - else - logit "Can't start MySQL second instance" - fi - ;; - esac - # upload db dump only if we're deploying a trunk version if $TRUNK_VERSION && checkBootParam ngcpupload ; then set_deploy_status "upload_data"