1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/update.sh
2018-11-07 20:29:40 +01:00

16 lines
515 B
Bash
Executable file

#!/usr/bin/env bash
# Requires SENTRY_AUTH_TOKEN and SENTRY_ORG set in .profile
SENTRY_ORG=${SENTRY_ORG}
SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
old=$(git rev-list HEAD -n 1)
git pull
new=$(git rev-list HEAD -n 1)
if [ ${old} = ${new} ]; then
version=$(sentry-cli releases propose-version)
sentry-cli releases new -p royalnet ${version}
sentry-cli releases set-commits --auto ${version}
fi
sudo python3.6 -m pip install -r requirements.txt
sudo service apache2 restart
python3.6 -OO bots.py