70750
|
1 |
#!/usr/bin/env bash
|
|
2 |
#
|
|
3 |
# Update Phabricator installation in given ROOT directory
|
|
4 |
# see https://secure.phabricator.com/book/phabricator/article/upgrading
|
|
5 |
|
|
6 |
set -e
|
|
7 |
|
|
8 |
ROOT="${1:-/var/www/phabricator}"
|
|
9 |
|
|
10 |
"$ROOT/phabricator/bin/phd" stop
|
|
11 |
|
|
12 |
systemctl stop apache2
|
|
13 |
|
|
14 |
for REPOS in libphutil arcanist phabricator
|
|
15 |
do
|
|
16 |
cd "$ROOT/$REPOS"
|
|
17 |
git pull
|
|
18 |
done
|
|
19 |
|
|
20 |
"$ROOT/phabricator/bin/storage" upgrade --force
|
|
21 |
|
|
22 |
systemctl start apache2
|
|
23 |
|
|
24 |
"$ROOT/phabricator/bin/phd" start
|