dots/phab-upgrade.sh
Yongmin Hong c679fa5aef
(deploy|phab-upgrade).sh: #!/usr/bin/env bash
Summary:
[Per wooledge BashGuide](https://mywiki.wooledge.org/BashGuide/CommandsAndArguments#Scripts).

Also set `chmod +x phab-upgrade.sh`.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: run it?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D364
2024-06-19 14:40:55 +09:00

22 lines
745 B
Bash
Executable file

#!/usr/bin/env bash
# Copyright 2016 Hong Yongmin <https://revi.xyz>
# SPDX-License-Identifier: Apache-2.0
cd ~/sandbox
git pull origin master
cd /var/www/phorge/phorge
sudo service phorge-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 /var/www/phorge/phorge/src/extensions
sudo -u www-data cp /home/revi/sandbox/PhabExt/PhabricatorCustomRobotsTxtController.php .
cd /var/www/phorge/phorge
sudo -u www-data ./bin/storage upgrade
sudo service phorge-phd start
sudo service apache2 start