You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ttrss-docker-compose/app/updater.sh

19 lines
411 B
Bash

#!/bin/sh -ex
# wait for the app container to delete .app_is_ready and perform rsync, etc.
sleep 30
while ! pg_isready -h $DB_HOST -U $DB_USER; do
echo waiting until $DB_HOST is ready...
sleep 3
done
DST_DIR=/var/www/html/tt-rss
while [ ! -s $DST_DIR/config.php -a -e $DST_DIR/.app_is_ready ]; do
echo waiting for app container...
sleep 3
done
exec /usr/bin/php /var/www/html/tt-rss/update_daemon2.php