gnusocial theme commit
This commit is contained in:
parent
5be1dbea61
commit
ce1557b02b
|
@ -8586,15 +8586,15 @@ function install_gnu_social_theme {
|
||||||
# update to the next commit
|
# update to the next commit
|
||||||
if grep -q "addPlugin('Qvitter')" /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php; 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
|
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}')
|
CURRENT_MICROBLOG_THEME_COMMIT=$(grep "GNU Social theme commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
|
||||||
if [[ "$CURRENT_GNUSOCIAL_THEME_COMMIT" != "$GNUSOCIAL_THEME_COMMIT" ]]; then
|
if [[ "$CURRENT_MICROBLOG_THEME_COMMIT" != "$MICROBLOG_THEME_COMMIT" ]]; then
|
||||||
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
|
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
|
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
|
chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "GNU Social theme commit:$GNUSOCIAL_THEME_COMMIT" >> $COMPLETION_FILE
|
echo "GNU Social theme commit:$MICROBLOG_THEME_COMMIT" >> $COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -8607,7 +8607,7 @@ function install_gnu_social_theme {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
|
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
|
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
|
echo "addPlugin('Qvitter');" >> /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php
|
||||||
|
|
Loading…
Reference in New Issue