Add phabricator-upgrading script

Because I need this on the private server.

Signed-off-by: Yongmin Hong <revi@pobox.com>
This commit is contained in:
revi 2016-12-31 03:30:38 +09:00
parent 596816e986
commit b00bd200f6
Signed by: revi
GPG key ID: 48AE727894A6F064

15
phab-upgrade.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
cd /var/www/html/phabricator
sudo ./bin/phd stop
sudo service apache2 stop
sudo git checkout stable
sudo git pull origin stable
cd ../libphutil
sudo git checkout stable
sudo git pull origin stable
cd ../arcanist
sudo git checkout stable
sudo git pull origin stable
cd ../phabricator
sudo ./bin/phd start
sudo service apache2 start