addnonssl
All checks were successful
web/docker-ttrss/pipeline/head This commit looks good

This commit is contained in:
Julien Cabillot
2025-01-06 17:21:16 -05:00
parent 7d141bb3b2
commit 860abf0558
5 changed files with 17 additions and 124 deletions

View File

@@ -4,38 +4,21 @@ TTRSS_PATH=/var/www/ttrss
TTRSS_PATH_THEMES=${TTRSS_PATH}/themes.local
TTRSS_PATH_PLUGINS=${TTRSS_PATH}/plugins.local
update_ttrss()
{
if [ -n "$TTRSS_GIT_TAG" ]; then
echo "Updating Tiny Tiny RSS disabled (using tag '$TTRSS_GIT_TAG')"
return
fi
echo "Updating: Tiny Tiny RSS"
( cd ${TTRSS_PATH} && git pull origin HEAD )
}
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
}
update_plugin_feediron()
{
echo "Updating: FeedIron"
( cd ${TTRSS_PATH_PLUGINS}/feediron && git pull origin HEAD )
}
update_themes()
{
echo "Updating: Themes"
( cd ${TTRSS_PATH_THEMES}/levito-feedly-git && git pull origin HEAD )
( cd ${TTRSS_PATH_THEMES}/gravemind-feedly-git && git pull origin HEAD )
#( cd ${TTRSS_PATH_THEMES}/levito-feedly-git && git pull origin HEAD )
#( cd ${TTRSS_PATH_THEMES}/gravemind-feedly-git && git pull origin HEAD )
cd ${TTRSS_PATH_THEMES}
@@ -50,30 +33,8 @@ update_themes()
ln -f -s ${TTRSS_PATH_THEMES}/gravemind-feedly-git/feedlish-night.css.map
}
update_common()
{
if [ -z "$MY_ROOT_UID" ]; then
MY_ROOT_UID=0
fi
if [ -z "$MY_ROOT_GID" ]; then
MY_ROOT_GID=0
fi
echo "Updating: Updating permissions"
for CUR_DIR in /etc/nginx /etc/php83 /var/lib/nginx /etc/services.d; do
chown -R ${MY_ROOT_UID}:${MY_ROOT_GID} ${CUR_DIR}
done
chown -R www-data:www-data ${TTRSS_PATH}
echo "Updating: Updating permissions done"
}
update_ttrss
update_plugin_mobilize
update_plugin_feediron
update_themes
update_common
echo "Update: Done"