#!/bin/sh set -e TTRSS_PATH=/var/www/ttrss # Note: Make sure to keep the actual updater service ("ttrss-update") alive, # otherwise this script will be killed and everyting goes nuts. TTRSS_SUPERVISORD_SERVICES="ttrss-daemon nginx php5-fpm" update_ttrss() { echo "Updating: Tiny Tiny RSS" ( cd ${TTRSS_PATH} && git pull origin master ) if [ -n "$DB_PORT" ]; then echo "Updating: Database" php /srv/ttrss-configure-db.php php /srv/ttrss-configure-plugin-mobilize.php fi } update_plugin_mobilize() { echo "Updating: Mobilize plugin" ( cd ${TTRSS_PATH}/plugins/mobilize && git pull origin master ) # Patch ttrss-mobilize plugin for getting it to work. sed -i -e "s/