From f7a25184dcd21b18253f48f0df298be4b79f61fd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 8 Jan 2016 21:13:12 +0000 Subject: [PATCH] Fix gnusocial --- src/freedombone | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/freedombone b/src/freedombone index 709edef7..360cd161 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8130,13 +8130,10 @@ function install_gnu_social { mkdir /var/www/$MICROBLOG_DOMAIN_NAME fi if [ ! -d /var/www/$MICROBLOG_DOMAIN_NAME/htdocs ]; then - mkdir /var/www/$MICROBLOG_DOMAIN_NAME/htdocs + git clone $MICROBLOG_REPO /var/www/$MICROBLOG_DOMAIN_NAME/htdocs fi - cd $INSTALL_DIR - git clone $MICROBLOG_REPO gnusocial - - cd gnusocial + cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs git checkout $GNUSOCIAL_COMMIT -b $GNUSOCIAL_COMMIT if ! grep -q "GNU Social commit" $COMPLETION_FILE; then echo "GNU Social commit:$GNUSOCIAL_COMMIT" >> $COMPLETION_FILE @@ -8144,9 +8141,6 @@ function install_gnu_social { sed -i "s/GNU Social commit.*/GNU Social commit:$GNUSOCIAL_COMMIT/g" $COMPLETION_FILE fi - cd $INSTALL_DIR - rm -rf /var/www/$MICROBLOG_DOMAIN_NAME/htdocs - mv gnusocial /var/www/$MICROBLOG_DOMAIN_NAME/htdocs chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs chown www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/avatar