1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Update Install and Update Scripts to the new Paths and Repository links

Summary:
Set the Reposity links to actually install Phorge, Update Documentation links to the new Website.

Notes:
 - Github Mirrors are not set up. Use one anyway? Or just use the Repos at we.phorge.it?
 - Documentation Links still contain "phabricator". The Docs are changed, but the Diviner Books are not rebuilt. (Add a Cronjob or do it after every Commit?)
 - mysql-server is not included anymore in Debian environments. Should mariadb-server be used?
 - Should we print somewhere that Phorge is a Fork of Phabricator?

Test Plan:
Run the install script.
It should install Phorge and display Links to we.phore.it

Reviewers: O1 Blessed Committers, speck

Reviewed By: O1 Blessed Committers, speck

Subscribers: speck, tobiaswiese

Differential Revision: https://we.phorge.it/D25019
This commit is contained in:
Leon Eckardt 2021-09-04 15:48:31 -04:00 committed by Christopher Speck
parent ce31289228
commit fd1922c763
3 changed files with 52 additions and 38 deletions

View file

@ -6,18 +6,23 @@ confirm() {
} }
RHEL_VER_FILE="/etc/redhat-release" RHEL_VER_FILE="/etc/redhat-release"
INSTALL_URI=" https://we.phorge.it/book/phorge/article/installation_guide/"
CONFIG_URI=" https://we.phorge.it/book/phorge/article/configuration_guide/"
REPOSITORY_URI="https://we.phorge.it/source"
NAME_MAIN="phorge"
NAME_ARC="arcanist"
if [[ ! -f $RHEL_VER_FILE ]] if [[ ! -f $RHEL_VER_FILE ]]
then then
echo "It looks like you're not running a Red Hat-derived distribution." echo "It looks like you're not running a Red Hat-derived distribution."
echo "This script is intended to install Phabricator on RHEL-derived" echo "This script is intended to install $NAME_MAIN on RHEL-derived"
echo "distributions such as RHEL, Fedora, CentOS, and Scientific Linux." echo "distributions such as RHEL, Fedora, CentOS, and Scientific Linux."
echo "Proceed with caution." echo "Proceed with caution."
confirm confirm
fi fi
echo "PHABRICATOR RED HAT DERIVATIVE INSTALLATION SCRIPT"; echo "$NAME_MAIN RED HAT DERIVATIVE INSTALLATION SCRIPT";
echo "This script will install Phabricator and all of its core dependencies."; echo "This script will install $NAME_MAIN and all of its core dependencies.";
echo "Run it from the directory you want to install into."; echo "Run it from the directory you want to install into.";
echo echo
@ -43,7 +48,7 @@ then
confirm confirm
fi fi
echo "Phabricator will be installed to: $(pwd)."; echo "$NAME_MAIN will be installed to: $(pwd).";
confirm confirm
echo "Testing sudo/root..." echo "Testing sudo/root..."
@ -117,22 +122,22 @@ fi
confirm confirm
if [[ ! -e arcanist ]] if [[ ! -e "$NAME_ARC" ]]
then then
git clone https://github.com/phacility/arcanist.git git clone "$REPOSITORY_URI/$NAME_ARC.git"
else else
(cd arcanist && git pull --rebase) (cd "$NAME_ARC" && git pull --rebase)
fi fi
if [[ ! -e phabricator ]] if [[ ! -e "$NAME_MAIN" ]]
then then
git clone https://github.com/phacility/phabricator.git git clone "$REPOSITORY_URI/$NAME_MAIN.git"
else else
(cd phabricator && git pull --rebase) (cd "$NAME_MAIN" && git pull --rebase)
fi fi
echo echo
echo echo
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':"; echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
echo echo
echo " https://secure.phabricator.com/book/phabricator/article/configuration_guide/"; echo $CONFIG_URI

View file

@ -5,7 +5,13 @@ confirm() {
read -e ignored read -e ignored
} }
INSTALL_URI=" https://phurl.io/u/install" INSTALL_URI=" https://we.phorge.it/book/phorge/article/installation_guide/"
CONFIG_URI=" https://we.phorge.it/book/phorge/article/configuration_guide/"
REPOSITORY_URI="https://we.phorge.it/source"
NAME_MAIN="phorge"
NAME_ARC="arcanist"
NAME_UPPER="$(echo $NAME_MAIN | tr a-z A-Z)"
failed() { failed() {
echo echo
@ -30,8 +36,8 @@ then
confirm confirm
fi fi
echo "PHABRICATOR UBUNTU INSTALL SCRIPT"; echo "$NAME_UPPER UBUNTU INSTALL SCRIPT";
echo "This script will install Apache, Phabricator and its core dependencies."; echo "This script will install Apache, $NAME_MAIN and its core dependencies.";
echo "Run it from the directory you want to install into."; echo "Run it from the directory you want to install into.";
echo echo
@ -52,8 +58,8 @@ if [ "$MAJOR" -lt 16 ]
then then
echo 'This script is intented to install on modern operating systems; Your ' echo 'This script is intented to install on modern operating systems; Your '
echo 'operating system is too old for this script.' echo 'operating system is too old for this script.'
echo 'You can still install Phabricator manually - please consult the installation' echo 'You can still install $NAME_MAIN manually - please consult the'
echo 'guide to see how:' echo 'installation guide to see how:'
echo echo
echo $INSTALL_URI echo $INSTALL_URI
echo echo
@ -65,7 +71,7 @@ fi
if [ "$MAJOR" -eq 16 ] if [ "$MAJOR" -eq 16 ]
then then
echo 'This version of Ubuntu requires additional resources in order to install' echo 'This version of Ubuntu requires additional resources in order to install'
echo 'and run Phabricator.' echo 'and run $NAME_MAIN.'
echo 'We will now add a the following package repository to your system:' echo 'We will now add a the following package repository to your system:'
echo ' https://launchpad.net/~ondrej/+archive/ubuntu/php' echo ' https://launchpad.net/~ondrej/+archive/ubuntu/php'
echo echo
@ -76,7 +82,7 @@ then
fi fi
ROOT=`pwd` ROOT=`pwd`
echo "Phabricator will be installed to: ${ROOT}."; echo "$NAME_MAIN will be installed to: ${ROOT}.";
confirm confirm
echo "Installing dependencies: git, apache, mysql, php..."; echo "Installing dependencies: git, apache, mysql, php...";
@ -91,27 +97,27 @@ echo "Enabling mod_rewrite in Apache..."
echo echo
sudo a2enmod rewrite || failed sudo a2enmod rewrite || failed
echo "Downloading Phabricator and dependencies..." echo "Downloading $NAME_MAIN and dependencies..."
echo echo
if [ ! -e arcanist ] if [ ! -e "$NAME_ARC" ]
then then
git clone https://github.com/phacility/arcanist.git git clone "$REPOSITORY_URI/$NAME_ARC.git"
else else
(cd arcanist && git pull --rebase) (cd "$NAME_ARC" && git pull --rebase)
fi fi
if [ ! -e phabricator ] if [ ! -e "$NAME_MAIN" ]
then then
git clone https://github.com/phacility/phabricator.git git clone "$REPOSITORY_URI/$NAME_MAIN.git"
else else
(cd phabricator && git pull --rebase) (cd "$NAME_MAIN" && git pull --rebase)
fi fi
echo echo
echo echo
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':"; echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
echo echo
echo " https://secure.phabricator.com/book/phabricator/article/configuration_guide/"; echo $CONFIG_URI
echo echo
echo 'Next step is "Configuring Apache webserver".' echo 'Next step is "Configuring Apache webserver".'

View file

@ -3,32 +3,35 @@
set -e set -e
set -x set -x
# This is an example script for updating Phabricator, similar to the one used to # This is an example script for updating Phabricator. It might not work
# update <https://secure.phabricator.com/>. It might not work perfectly on your # perfectly on your system, but hopefully it should be easy to adapt. This
# system, but hopefully it should be easy to adapt. This script is not intended # script is not intended to work without modifications.
# to work without modifications.
# NOTE: This script assumes you are running it from a directory which contains # NOTE: This script assumes you are running it from a directory which contains
# arcanist/ and phabricator/. # arcanist/ and phorge/. If you named them differently, you can change them
# here:
NAME_MAIN="phorge"
NAME_ARC="arcanist"
ROOT=`pwd` # You can hard-code the path here instead. ROOT=`pwd` # You can hard-code the path here instead.
### UPDATE WORKING COPIES ###################################################### ### UPDATE WORKING COPIES ######################################################
cd $ROOT/arcanist cd $ROOT/$NAME_ARC
git pull git pull
cd $ROOT/phabricator cd $ROOT/$NAME_MAIN
git pull git pull
### CYCLE WEB SERVER AND DAEMONS ############################################### ### CYCLE WEB SERVER AND DAEMONS ###############################################
# Stop daemons. # Stop daemons.
$ROOT/phabricator/bin/phd stop $ROOT/$NAME_MAIN/bin/phd stop
# If running the notification server, stop it. # If running the notification server, stop it.
# $ROOT/phabricator/bin/aphlict stop # $ROOT/$NAME_MAIN/bin/aphlict stop
# Stop the webserver (apache, nginx, lighttpd, etc). This command will differ # Stop the webserver (apache, nginx, lighttpd, etc). This command will differ
# depending on which system and webserver you are running: replace it with an # depending on which system and webserver you are running: replace it with an
@ -40,14 +43,14 @@ sudo /etc/init.d/httpd stop
# Upgrade the database schema. You may want to add the "--force" flag to allow # Upgrade the database schema. You may want to add the "--force" flag to allow
# this script to run noninteractively. # this script to run noninteractively.
$ROOT/phabricator/bin/storage upgrade $ROOT/$NAME_MAIN/bin/storage upgrade
# Restart the webserver. As above, this depends on your system and webserver. # Restart the webserver. As above, this depends on your system and webserver.
# NOTE: If you're running php-fpm, restart it here too. # NOTE: If you're running php-fpm, restart it here too.
sudo /etc/init.d/httpd start sudo /etc/init.d/httpd start
# Restart daemons. # Restart daemons.
$ROOT/phabricator/bin/phd start $ROOT/$NAME_MAIN/bin/phd start
# If running the notification server, start it. # If running the notification server, start it.
# $ROOT/phabricator/bin/aphlict start # $ROOT/$NAME_MAIN/bin/aphlict start