From 9f540774b1fa2d9035a8b19dd1901247b112ead5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Oct 2016 14:23:20 +0200 Subject: Add upgrade script --- scripts/upgrade.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/upgrade.sh (limited to 'scripts/upgrade.sh') diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh new file mode 100755 index 000000000..1299ac55a --- /dev/null +++ b/scripts/upgrade.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + + +git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1 + +if [[ `pgrep peertube` > /dev/null ]]; then + echo 'PeerTube is running!' + exit 0 +fi + +npm install +npm update +cd client && npm update && cd ../ +npm run build + +echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts." -- cgit v1.2.3