Use plugins.local for our own stuff now; bugfixes.

This commit is contained in:
x86dev 2018-12-16 14:44:25 +01:00
parent d9de8215e3
commit f19dd7e168
2 changed files with 15 additions and 10 deletions

View File

@ -51,6 +51,12 @@ setup_ttrss()
TTRSS_PATH=/var/www/ttrss
fi
TTRSS_PATH_THEMES=${TTRSS_PATH}/themes.local
mkdir -p ${TTRSS_PATH_THEMES}
TTRSS_PATH_PLUGINS=${TTRSS_PATH}/plugins.local
mkdir -p ${TTRSS_PATH_PLUGINS}
if [ ! -d ${TTRSS_PATH} ]; then
mkdir -p ${TTRSS_PATH}
if [ -n "$TTRSS_GIT_TAG" ]; then
@ -63,10 +69,10 @@ setup_ttrss()
echo "Setup: Setting up Tiny Tiny RSS (latest revision) ..."
git clone --depth=1 ${TTRSS_REPO_URL} ${TTRSS_PATH}
fi
git clone --depth=1 https://github.com/sepich/tt-rss-mobilize.git ${TTRSS_PATH}/plugins/mobilize
git clone --depth=1 https://github.com/m42e/ttrss_plugin-feediron.git ${TTRSS_PATH}/plugins/feediron
git clone --depth=1 https://github.com/levito/tt-rss-feedly-theme.git ${TTRSS_PATH}/themes/levito-feedly-git
git clone --depth=1 https://github.com/Gravemind/tt-rss-feedlish-theme.git ${TTRSS_PATH}/themes/gravemind-feedly-git
git clone --depth=1 https://github.com/sepich/tt-rss-mobilize.git ${TTRSS_PATH_PLUGINS}/mobilize
git clone --depth=1 https://github.com/m42e/ttrss_plugin-feediron.git ${TTRSS_PATH_PLUGINS}/feediron
git clone --depth=1 https://github.com/levito/tt-rss-feedly-theme.git ${TTRSS_PATH_THEMES}/levito-feedly-git
git clone --depth=1 https://github.com/Gravemind/tt-rss-feedlish-theme.git ${TTRSS_PATH_THEMES}/gravemind-feedly-git
fi
# Add initial config.

View File

@ -1,6 +1,8 @@
#!/bin/sh
TTRSS_PATH=/var/www/ttrss
TTRSS_PATH_THEMES=${TTRSS_PATH}/themes.local
TTRSS_PATH_PLUGINS=${TTRSS_PATH}/plugins.local
update_ttrss()
{
@ -16,25 +18,22 @@ update_ttrss()
update_plugin_mobilize()
{
echo "Updating: Mobilize plugin"
( cd ${TTRSS_PATH}/plugins/mobilize && git pull origin HEAD )
( cd ${TTRSS_PATH_PLUGINS}/mobilize && git pull origin HEAD )
# Patch ttrss-mobilize plugin for getting it to work.
sed -i -e "s/<?$/<?php/g" ${TTRSS_PATH}/plugins/mobilize/m.php
sed -i -e "s/<?$/<?php/g" ${TTRSS_PATH_PLUGINS}/mobilize/m.php
}
update_plugin_feediron()
{
echo "Updating: FeedIron"
( cd ${TTRSS_PATH}/plugins/feediron && git pull origin HEAD )
( cd ${TTRSS_PATH_PLUGINS}/feediron && git pull origin HEAD )
}
update_themes()
{
echo "Updating: Themes"
TTRSS_PATH_THEMES=${TTRSS_PATH}/themes.local
mkdir -p ${TTRSS_PATH_THEMES}
( cd ${TTRSS_PATH_THEMES}/levito-feedly-git && git pull origin HEAD )
( cd ${TTRSS_PATH_THEMES}/gravemind-feedly-git && git pull origin HEAD )