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
changes/64/7764/2
Kirill Solomko 9 years ago
parent ce4a6916ee
commit 42447d5aa3

@ -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"

Loading…
Cancel
Save