Yongmin Hong
df2868fab2
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>
16 lines
478 B
Bash
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
|