librenms-librenms/scripts/deploy-schema.sh
Neil Lathwood 2c3599d3e5 Deploy schema (#6354)
* updated username

* updated username
2017-04-05 10:56:18 +01:00

15 lines
402 B
Bash
Executable File

#!/bin/bash
GH_REPO="@github.com/librenms/librenms.git"
FULL_REPO="https://${GH_TOKEN}$GH_REPO"
git config user.name "laf"
git config user.email "travis@librenms.org"
DBTEST=1 ./scripts/build-schema.php > misc/db_schema.yaml
STATUS=$(git status -s misc/db_schema.yaml)
if [[ "$STATUS" != "" ]]; then
git commit -m "DB Schema updated by travis after $TRAVIS_COMMIT"
git push -q origin master
fi