add same workaround to updater startup script

This commit is contained in:
Andrew Dolgov 2025-07-03 21:39:17 +03:00
parent bab03ea516
commit fb219848b6
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -30,4 +30,9 @@ while [ ! -s $DST_DIR/config.php -a -e $DST_DIR/.app_is_ready ]; do
sleep 3
done
# this is some next level bullshit
# - https://stackoverflow.com/questions/65622914/why-would-i-get-a-php-pdoexception-complaining-that-it-cant-make-a-postgres-con
# - fatal error: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
chown -R app:app /root # /.postgresql
sudo -E -u app "${TTRSS_PHP_EXECUTABLE}" $APP_INSTALL_BASE_DIR/tt-rss/update_daemon2.php "$@"