add workaround for what possibly is a PDO bug related to tls connections to pgsql

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

View File

@ -56,6 +56,11 @@ for d in cache lock feed-icons plugins.local themes.local templates.local cache/
sudo -u app mkdir -p $DST_DIR/$d
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
for d in cache lock feed-icons; do
chmod 777 $DST_DIR/$d
find $DST_DIR/$d -type f -exec chmod 666 {} \;