Built motion from commit 27e0a5d.|1.0.8
[motion.git] / scripts / post-merge.sh
1 #!/bin/bash
2
3 echo "post-merge started"
4 cd /var/opt/motion
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
7 echo "sequelize"
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"
12 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 "post-merge finished"