Admin/Phabricator/update
changeset 71333 c898cd5b8519
parent 71332 277ee690cb14
child 71334 8b69289254ba
equal deleted inserted replaced
71332:277ee690cb14 71333:c898cd5b8519
     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