Configurable microblog repo

This commit is contained in:
Bob Mottram 2014-09-26 21:30:49 +01:00
parent 2fdb34340e
commit 94d7b67bc2
1 changed files with 15 additions and 9 deletions

View File

@ -81,6 +81,10 @@ INSTALLED_WITHIN_DOCKER="no"
# There should be no spaces in the name
PRIVATE_MAILING_LIST=
# Domain name or freedns subdomain for microblog installation
MICROBLOG_DOMAIN_NAME=
MICROBLOG_REPO="git://gitorious.org/social/mainline.git"
# Domain name or freedns subdomain for Owncloud installation
OWNCLOUD_DOMAIN_NAME=
# Freedns dynamic dns code for owncloud
@ -2220,7 +2224,8 @@ function install_gnu_social {
apt-get -y --force-yes install php5-xcache php-gettext php5-curl php5-gd php5-mysql git
cd $INSTALL_DIR
git clone git://gitorious.org/social/mainline.git gnusocial
if [ ! -f /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/index.php ]; then
git clone $MICROBLOG_REPO gnusocial
rm -rf /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
mv gnusocial /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
@ -2230,6 +2235,7 @@ function install_gnu_social {
chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/background
chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/file
chmod +x /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/scripts/maildaemon.php
fi
echo 'install_gnu_social' >> $COMPLETION_FILE
}