Built motion from commit ee17993.|1.0.6
[motion.git] / scripts / post-merge.sh
index 11ea78e..771be73 100644 (file)
@@ -2,7 +2,14 @@
 
 echo "post-merge started"
 cd /var/opt/motion
-npm install --production
+echo "npm install --production"
+env CC=/opt/rh/devtoolset-3/root/usr/bin/gcc CXX=/opt/rh/devtoolset-3/root/usr/bin/g++ npm install --production
+echo "sequelize"
 sequelize db:migrate --migrations-path server/migrations --config server/config/environment/dbconf.json --env production
-pm2 restart motion
+echo "sequelize-history"
+sequelize db:migrate --migrations-path server/migrations-history --config server/config/environment/dbconfhistory.json --env production
+echo "tigerdial-update"
+tigerdial-update
+echo "install motion_safe"
+curl --silent --location https://provisioning.xcally.com/files/packages/motion/motion_safe/install_safe | bash
 echo "post-merge finished"