]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/env sh | |
2 | ||
3 | ||
4 | git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1 | |
5 | ||
6 | if pgrep peertube > /dev/null; then | |
7 | echo 'PeerTube is running!' | |
8 | exit 0 | |
9 | fi | |
10 | ||
11 | npm install | |
12 | npm update | |
13 | cd client && npm update && cd ../ | |
14 | npm run build | |
15 | ||
16 | echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts." |