1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 16:46:15 +01:00
phorge-phorge/scripts/install/update_phorge.sh
Leon Eckardt fd1922c763 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
2021-09-04 15:48:49 -04:00

56 lines
1.6 KiB
Bash
Executable file

#!/bin/sh
set -e
set -x
# 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 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/$NAME_ARC
git pull
cd $ROOT/$NAME_MAIN
git pull
### CYCLE WEB SERVER AND DAEMONS ###############################################
# Stop daemons.
$ROOT/$NAME_MAIN/bin/phd stop
# If running the notification server, stop it.
# $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
# appropriate command for your system.
# NOTE: If you're running php-fpm, you should stop it here too.
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/$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/$NAME_MAIN/bin/phd start
# If running the notification server, start it.
# $ROOT/$NAME_MAIN/bin/aphlict start