ttrss:22.08-5fea1a7ea

This commit is contained in:
John
2022-09-04 15:21:05 +08:00
parent 04ed1ba5a8
commit bf52720c09
7 changed files with 42 additions and 35 deletions

View File

@ -8,7 +8,7 @@ if [ -n "$TTRSS_DB_HOST" ] && [ -n "$TTRSS_DB_USER" ] && [ -n "$TTRSS_DB_NAME" ]
if [ "$($PSQL -c "\dx" |grep "zhparser" |wc -l)" -eq 0 ]; then
psql -U $TTRSS_DB_USER -d $TTRSS_DB_NAME -a -f /docker-entrypoint-initdb.d/install_extension.sql
fi
su ttrss -s /bin/sh -m -c "php8 /usr/local/tt-rss/app/update.php --update-schema=force-yes"
su ttrss -s /bin/sh -m -c "php81 /usr/local/tt-rss/app/update.php --update-schema=force-yes"
else
echo 环境变量TTRSS_DB_[HOST、USER、NAME、PASS]未填写完全...
fi