1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +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"
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 ]]
then
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 "Proceed with caution."
confirm
fi
echo "PHABRICATOR RED HAT DERIVATIVE INSTALLATION SCRIPT";
echo "This script will install Phabricator and all of its core dependencies.";
echo "$NAME_MAIN RED HAT DERIVATIVE INSTALLATION SCRIPT";
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
@ -43,7 +48,7 @@ then
confirm
fi
echo "Phabricator will be installed to: $(pwd).";
echo "$NAME_MAIN will be installed to: $(pwd).";
confirm
echo "Testing sudo/root..."
@ -117,22 +122,22 @@ fi
confirm
if [[ ! -e arcanist ]]
if [[ ! -e "$NAME_ARC" ]]
then
git clone https://github.com/phacility/arcanist.git
git clone "$REPOSITORY_URI/$NAME_ARC.git"
else
(cd arcanist && git pull --rebase)
(cd "$NAME_ARC" && git pull --rebase)
fi
if [[ ! -e phabricator ]]
if [[ ! -e "$NAME_MAIN" ]]
then
git clone https://github.com/phacility/phabricator.git
git clone "$REPOSITORY_URI/$NAME_MAIN.git"
else
(cd phabricator && git pull --rebase)
(cd "$NAME_MAIN" && git pull --rebase)
fi
echo
echo
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
echo
echo " https://secure.phabricator.com/book/phabricator/article/configuration_guide/";
echo $CONFIG_URI

View file

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

View file

@ -3,32 +3,35 @@
set -e
set -x
# This is an example script for updating Phabricator, similar to the one used to
# update <https://secure.phabricator.com/>. It might not work perfectly on your
# system, but hopefully it should be easy to adapt. This script is not intended
# to work without modifications.
# This is an example script for updating Phabricator. It might not work
# perfectly on your system, but hopefully it should be easy to adapt. This
# script is not intended to work without modifications.
# 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.
### UPDATE WORKING COPIES ######################################################
cd $ROOT/arcanist
cd $ROOT/$NAME_ARC
git pull
cd $ROOT/phabricator
cd $ROOT/$NAME_MAIN
git pull
### CYCLE WEB SERVER AND DAEMONS ###############################################
# Stop daemons.
$ROOT/phabricator/bin/phd stop
$ROOT/$NAME_MAIN/bin/phd stop
# 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
# 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
# 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.
# NOTE: If you're running php-fpm, restart it here too.
sudo /etc/init.d/httpd start
# Restart daemons.
$ROOT/phabricator/bin/phd start
$ROOT/$NAME_MAIN/bin/phd start
# If running the notification server, start it.
# $ROOT/phabricator/bin/aphlict start
# $ROOT/$NAME_MAIN/bin/aphlict start