update gnusocial markdown plugin
This commit is contained in:
parent
1779969963
commit
63b8b38cb9
|
@ -202,8 +202,8 @@ MICROBLOG_THEME_REPO="https://git.gnu.io/h2p/Qvitter.git"
|
|||
MICROBLOG_THEME_COMMIT='2816507545bb7e3da5b0a290692576b8d2ee335f'
|
||||
MICROBLOG_WELCOME_MESSAGE=$'<h1>Welcome to GNU Social – a federated microblog</h1><p>Another Freedombone site</p>'
|
||||
MICROBLOG_BACKGROUND_IMAGE_URL=
|
||||
MICROBLOG_MARKDOWN_REPO="https://github.com/bashrc/gs-markdown"
|
||||
MICROBLOG_MARKDOWN_COMMIT='9de4bf9250fe3ebd7b159ca587cf39f828f7bf4c'
|
||||
MICROBLOG_MARKDOWN_REPO="https://git.gnu.io/chimo/markdown.git"
|
||||
MICROBLOG_MARKDOWN_COMMIT='03c53942f94b3376f0946e6e1fe566cc21ccf232'
|
||||
|
||||
# Domain name for hubzilla installation
|
||||
HUBZILLA_DOMAIN_NAME=
|
||||
|
@ -9208,23 +9208,29 @@ function install_gnu_social_markdown {
|
|||
return
|
||||
fi
|
||||
|
||||
MICROBLOG_PATH=/var/www/$MICROBLOG_DOMAIN_NAME/htdocs
|
||||
|
||||
# update to the next commit
|
||||
set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Markdown "GNU Social Markdown commit" "$MICROBLOG_MARKDOWN_COMMIT" $MICROBLOG_MARKDOWN_REPO
|
||||
set_repo_commit $MICROBLOG_PATH/local/plugins/Markdown "GNU Social Markdown commit" "$MICROBLOG_MARKDOWN_COMMIT" $MICROBLOG_MARKDOWN_REPO
|
||||
|
||||
if grep -Fxq "install_gnu_social_markdown" $COMPLETION_FILE; then
|
||||
return
|
||||
fi
|
||||
|
||||
if [ ! -d /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins ]; then
|
||||
mkdir -p /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
|
||||
if [ -d $MICROBLOG_PATH/local/plugins/Markdown ]; then
|
||||
rm -rf $MICROBLOG_PATH/local/plugins/Markdown
|
||||
fi
|
||||
|
||||
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins
|
||||
if [ ! -d $MICROBLOG_PATH/local/plugins ]; then
|
||||
mkdir -p $MICROBLOG_PATH/local/plugins
|
||||
fi
|
||||
|
||||
cd $MICROBLOG_PATH/local/plugins
|
||||
git_clone $MICROBLOG_MARKDOWN_REPO Markdown
|
||||
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Markdown
|
||||
cd $MICROBLOG_PATH/local/plugins/Markdown
|
||||
git checkout $MICROBLOG_MARKDOWN_COMMIT -b $MICROBLOG_MARKDOWN_COMMIT
|
||||
|
||||
microblog_config_file=/var/www/$MICROBLOG_DOMAIN_NAME/htdocs/config.php
|
||||
microblog_config_file=$MICROBLOG_PATH/config.php
|
||||
if ! grep -q "addPlugin('Markdown'" $microblog_config_file; then
|
||||
echo "" >> $microblog_config_file
|
||||
echo "// Markdown settings" >> $microblog_config_file
|
||||
|
@ -9235,7 +9241,7 @@ function install_gnu_social_markdown {
|
|||
echo "GNU Social Markdown commit:$MICROBLOG_MARKDOWN_COMMIT" >> $COMPLETION_FILE
|
||||
fi
|
||||
|
||||
chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
|
||||
chown -R www-data:www-data $MICROBLOG_PATH
|
||||
|
||||
echo 'install_gnu_social_markdown' >> $COMPLETION_FILE
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue