3 echo "post-merge started"
5 echo "npm install --production"
6 env CC=/opt/rh/devtoolset-3/root/usr/bin/gcc CXX=/opt/rh/devtoolset-3/root/usr/bin/g++ npm install --production
8 sequelize db:migrate --migrations-path server/migrations --config server/config/environment/dbconf.json --env production
9 echo "sequelize-history"
10 sequelize db:migrate --migrations-path server/migrations-history --config server/config/environment/dbconf.json --env production
11 echo "tigerdial-update"
13 echo "install motion_safe"
14 curl --silent --location https://provisioning.xcally.com/files/packages/motion/motion_safe/install_safe | bash
15 echo "add rtp_xcally configuration file"
16 RTP_FILE=/etc/asterisk/rtp.conf
17 RTP_XCALLY_FILE=/etc/asterisk/rtp_xcally.conf
18 touch $RTP_XCALLY_FILE
19 chmod 666 $RTP_XCALLY_FILE
20 if ! grep -q rtp_xcally $RTP_FILE; then
21 echo 'Include extensions file...'
22 echo '#include "rtp_xcally.conf"' >> $RTP_FILE
24 echo "post-merge finished"