gnusocial theme commit

This commit is contained in:
Bob Mottram 2016-02-03 18:37:14 +00:00
parent 5be1dbea61
commit ce1557b02b
1 changed files with 5 additions and 5 deletions

View File

@ -8586,15 +8586,15 @@ function install_gnu_social_theme {
# update to the next commit
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
CURRENT_MICROBLOG_THEME_COMMIT=$(grep "GNU Social theme commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
if [[ "$CURRENT_MICROBLOG_THEME_COMMIT" != "$MICROBLOG_THEME_COMMIT" ]]; then
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
git_pull $MICROBLOG_THEME_REPO $GNUSOCIAL_THEME_COMMIT
git_pull $MICROBLOG_THEME_REPO $MICROBLOG_THEME_COMMIT
sed -i "s/GNU Social theme commit.*/GNU Social theme commit:$GNUSOCIAL_THEME_COMMIT/g" $COMPLETION_FILE
chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local
fi
else
echo "GNU Social theme commit:$GNUSOCIAL_THEME_COMMIT" >> $COMPLETION_FILE
echo "GNU Social theme commit:$MICROBLOG_THEME_COMMIT" >> $COMPLETION_FILE
fi
fi
@ -8607,7 +8607,7 @@ function install_gnu_social_theme {
fi
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
git_clone $MICROBLOG_THEME_REPO $GNUSOCIAL_THEME_COMMIT
git_clone $MICROBLOG_THEME_REPO $MICROBLOG_THEME_COMMIT
if ! grep -q "addPlugin('Qvitter')" /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php; then
echo "addPlugin('Qvitter');" >> /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php