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:
parent
8cbb75ae7e
commit
df2868fab2
2 changed files with 11 additions and 10 deletions
2
LICENSE
2
LICENSE
|
@ -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:
|
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:
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /var/www/html/phabricator
|
cd /var/www/phab/phabricator
|
||||||
sudo ./bin/phd stop
|
sudo -u www-data ./bin/phd stop
|
||||||
sudo service apache2 stop
|
sudo service apache2 stop
|
||||||
sudo git checkout stable
|
sudo -u www-data git checkout stable
|
||||||
sudo git pull origin stable
|
sudo -u www-data git pull origin stable
|
||||||
cd ../libphutil
|
cd ../libphutil
|
||||||
sudo git checkout stable
|
sudo -u www-data git checkout stable
|
||||||
sudo git pull origin stable
|
sudo -u www-data git pull origin stable
|
||||||
cd ../arcanist
|
cd ../arcanist
|
||||||
sudo git checkout stable
|
sudo -u www-data git checkout stable
|
||||||
sudo git pull origin stable
|
sudo -u www-data git pull origin stable
|
||||||
cd ../phabricator
|
cd ../phabricator
|
||||||
sudo ./bin/phd start
|
sudo -u www-data ./bin/storage upgrade
|
||||||
|
sudo -u www-data ./bin/phd start
|
||||||
sudo service apache2 start
|
sudo service apache2 start
|
||||||
|
|
Loading…
Reference in a new issue