This commit is contained in:
Bob Mottram 2016-02-03 18:02:21 +00:00
parent 103714d88c
commit 5be1dbea61
1 changed files with 2 additions and 2 deletions

View File

@ -8584,7 +8584,7 @@ function install_gnu_social_theme {
fi
# update to the next commit
if [ -d /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins ]; then
if grep -q "addPlugin('Qvitter')" /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php; then
if grep -q "GNU Social theme commit" $COMPLETION_FILE; then
CURRENT_GNUSOCIAL_THEME_COMMIT=$(grep "GNU Social theme commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
if [[ "$CURRENT_GNUSOCIAL_THEME_COMMIT" != "$GNUSOCIAL_THEME_COMMIT" ]]; then
@ -8606,6 +8606,7 @@ function install_gnu_social_theme {
mkdir -p /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
fi
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
git_clone $MICROBLOG_THEME_REPO $GNUSOCIAL_THEME_COMMIT
if ! grep -q "addPlugin('Qvitter')" /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php; then
@ -8614,7 +8615,6 @@ function install_gnu_social_theme {
chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
#MICROBLOG_THEME_REPO
echo 'install_gnu_social_theme' >> $COMPLETION_FILE
}