1
0
Fork 0

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>
This commit is contained in:
revi 2021-01-01 07:21:30 +09:00
parent 8cbb75ae7e
commit df2868fab2
Signed by: revi
GPG Key ID: AACAFCE3D8948D4E
2 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,4 @@
Copyright © 2015-2020 Yongmin Hong (revi) <revi@pobox.com>
Copyright © 2015-2021 Yongmin Hong (revi) <revi@pobox.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

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