MT#8773 MT#8127 [CARRIER] configure replication on second MySQL instance

On proxy node we have a second instance and We need to
set the replication and grants

Change-Id: I18b9f60f12abea5bc27fee80ccf1282e29541bec
changes/06/106/7
Victor Seva 11 years ago
parent 6a1a2ad918
commit 6d34000a5c

@ -1525,6 +1525,17 @@ EOT
chroot $TARGET ngcpcfg push --shared-only chroot $TARGET ngcpcfg push --shared-only
fi fi
case "$CROLE" in
proxy)
if chroot $TARGET service mysql start 2 ; then
logit "Configuring MySQL second instance"
chroot $TARGET ngcp-sync-constants -r -s
else
logit "Can't start MySQL second instance"
fi
;;
esac
# we require those packages for dkms, so do NOT remove them: # we require those packages for dkms, so do NOT remove them:
# binutils cpp-4.3 gcc-4.3-base linux-kbuild-2.6.32 # binutils cpp-4.3 gcc-4.3-base linux-kbuild-2.6.32
if grml-chroot $TARGET dkms status | grep -q ngcp-rtpengine ; then if grml-chroot $TARGET dkms status | grep -q ngcp-rtpengine ; then

Loading…
Cancel
Save