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.
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# We don't need those here (HTTP_HOST would cause false SELF_URL_PATH check failures)
|
|
|
|
unset HTTP_PORT
|
|
|
|
unset HTTP_HOST
|
|
|
|
|
|
|
|
# wait for the app container to delete .app_is_ready and perform rsync, etc.
|
|
|
|
sleep 30
|
|
|
|
|
|
|
|
if ! id app >/dev/null 2>&1; then
|
|
|
|
addgroup -g $OWNER_GID app
|
|
|
|
adduser -D -h /var/www/html -G app -u $OWNER_UID app
|
|
|
|
fi
|
|
|
|
|
|
|
|
while ! mysql -h $TTRSS_DB_HOST -u $TTRSS_DB_USER -p$TTRSS_DB_PASS -e "select 1"; do
|
|
|
|
echo waiting until $TTRSS_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
|
|
|
|
|
|
|
|
sudo -E -u app /usr/bin/php8 /var/www/html/tt-rss/update_daemon2.php
|