Fix gnusocial
This commit is contained in:
parent
4bab789ed5
commit
f7a25184dc
|
@ -8130,13 +8130,10 @@ function install_gnu_social {
|
||||||
mkdir /var/www/$MICROBLOG_DOMAIN_NAME
|
mkdir /var/www/$MICROBLOG_DOMAIN_NAME
|
||||||
fi
|
fi
|
||||||
if [ ! -d /var/www/$MICROBLOG_DOMAIN_NAME/htdocs ]; then
|
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
|
fi
|
||||||
|
|
||||||
cd $INSTALL_DIR
|
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
|
||||||
git clone $MICROBLOG_REPO gnusocial
|
|
||||||
|
|
||||||
cd gnusocial
|
|
||||||
git checkout $GNUSOCIAL_COMMIT -b $GNUSOCIAL_COMMIT
|
git checkout $GNUSOCIAL_COMMIT -b $GNUSOCIAL_COMMIT
|
||||||
if ! grep -q "GNU Social commit" $COMPLETION_FILE; then
|
if ! grep -q "GNU Social commit" $COMPLETION_FILE; then
|
||||||
echo "GNU Social commit:$GNUSOCIAL_COMMIT" >> $COMPLETION_FILE
|
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
|
sed -i "s/GNU Social commit.*/GNU Social commit:$GNUSOCIAL_COMMIT/g" $COMPLETION_FILE
|
||||||
fi
|
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
|
chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
|
||||||
chown www-data:www-data /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
|
chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/avatar
|
||||||
|
|
Loading…
Reference in New Issue