Hubzilla path

This commit is contained in:
Bob Mottram 2018-02-18 12:44:29 +00:00
parent 3ba7b5db42
commit 9351ed6598
1 changed files with 5 additions and 10 deletions

View File

@ -353,28 +353,23 @@ function install_hubzilla {
mkdir /var/www/$HUBZILLA_DOMAIN_NAME mkdir /var/www/$HUBZILLA_DOMAIN_NAME
fi fi
if [ ! -d $HUBZILLA_PATH ]; then if [ ! -d $HUBZILLA_PATH ]; then
mkdir $HUBZILLA_PATH mkdir -p $HUBZILLA_PATH
fi fi
if [ ! -f $HUBZILLA_PATH/index.php ]; then if [ ! -f $HUBZILLA_PATH/index.php ]; then
cd $INSTALL_DIR
if [ -d /repos/hubzilla ]; then if [ -d /repos/hubzilla ]; then
mkdir hubzilla mkdir $HUBZILLA_PATH
cp -r -p /repos/hubzilla/. hubzilla cp -r -p /repos/hubzilla/. $HUBZILLA_PATH
cd hubzilla cd $HUBZILLA_PATH
git pull git pull
else else
function_check git_clone function_check git_clone
git_clone $HUBZILLA_REPO hubzilla git_clone $HUBZILLA_REPO $HUBZILLA_PATH
fi fi
git checkout $HUBZILLA_COMMIT -b $HUBZILLA_COMMIT git checkout $HUBZILLA_COMMIT -b $HUBZILLA_COMMIT
set_completion_param "hubzilla commit" "$HUBZILLA_COMMIT" set_completion_param "hubzilla commit" "$HUBZILLA_COMMIT"
rm -rf $HUBZILLA_PATH
mv hubzilla $HUBZILLA_PATH
if [ -d /repos/hubzilla-addons ]; then if [ -d /repos/hubzilla-addons ]; then
mkdir $HUBZILLA_PATH/addon mkdir $HUBZILLA_PATH/addon
cp -r -p /repos/hubzilla-addons/. $HUBZILLA_PATH/addon cp -r -p /repos/hubzilla-addons/. $HUBZILLA_PATH/addon