Admin/Phabricator/update
author wenzelm
Tue, 05 Nov 2019 22:08:15 +0100
changeset 71056 ee3c43eb79ae
parent 70750 07673e7cb5e6
permissions -rwxr-xr-x
proper service name (again): it is specific to each installation;

#!/usr/bin/env bash
#
# Update Phabricator installation in given ROOT directory
# see https://secure.phabricator.com/book/phabricator/article/upgrading

set -e

ROOT="${1:-/var/www/phabricator}"

"$ROOT/phabricator/bin/phd" stop

systemctl stop apache2

for REPOS in libphutil arcanist phabricator
do
  cd "$ROOT/$REPOS"
  git pull
done

"$ROOT/phabricator/bin/storage" upgrade --force

systemctl start apache2

"$ROOT/phabricator/bin/phd" start