Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2647654
D25019.1732379665.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
7 KB
Referenced Files
None
Subscribers
None
D25019.1732379665.diff
View Options
diff --git a/scripts/install/install_rhel-derivs.sh b/scripts/install/install_rhel-derivs.sh
--- a/scripts/install/install_rhel-derivs.sh
+++ b/scripts/install/install_rhel-derivs.sh
@@ -6,18 +6,23 @@
}
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 @@
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 @@
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
diff --git a/scripts/install/install_ubuntu.sh b/scripts/install/install_ubuntu.sh
--- a/scripts/install/install_ubuntu.sh
+++ b/scripts/install/install_ubuntu.sh
@@ -5,7 +5,13 @@
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 @@
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 @@
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 @@
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 @@
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
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".'
diff --git a/scripts/install/update_phabricator.sh b/scripts/install/update_phorge.sh
rename from scripts/install/update_phabricator.sh
rename to scripts/install/update_phorge.sh
--- a/scripts/install/update_phabricator.sh
+++ b/scripts/install/update_phorge.sh
@@ -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 @@
# 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 16:34 (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
989213
Default Alt Text
D25019.1732379665.diff (7 KB)
Attached To
Mode
D25019: Update Install and Update Scripts to the new Paths and Repository links
Attached
Detach File
Event Timeline
Log In to Comment