dots/phab-upgrade.sh
Yongmin Hong df2868fab2
Bump license, modernize phab-upgrade.sh
The sun of 2021 is just here.
sudo should not do things as root, but as www-data.

Signed-off-by: Yongmin Hong <revi@pobox.com>
2021-01-01 07:21:30 +09:00

16 lines
478 B
Bash

#!/bin/bash
cd /var/www/phab/phabricator
sudo -u www-data ./bin/phd stop
sudo service apache2 stop
sudo -u www-data git checkout stable
sudo -u www-data git pull origin stable
cd ../libphutil
sudo -u www-data git checkout stable
sudo -u www-data git pull origin stable
cd ../arcanist
sudo -u www-data git checkout stable
sudo -u www-data git pull origin stable
cd ../phabricator
sudo -u www-data ./bin/storage upgrade
sudo -u www-data ./bin/phd start
sudo service apache2 start