sethgoldin / davinci-resolve-postgresql-workflow-tools

Effortlessly set up automatic backups and automatic optimizations of DaVinci Resolve Studio's PostgreSQL databases
Other
80 stars 11 forks source link

.pgpass for local user #16

Closed sethgoldin closed 6 years ago

sethgoldin commented 6 years ago

This is a fix for the old bad code that had specified /home/$USER, for the location of the .pgpass file thus causing the script to throw an error when sudo was used, because the script was looking for the root user's .pgpass file. Since there is none--and there isn't supposed to be, I replaced all instances of /home/$USER with $HOME, which properly references the non-root user that's supposed to have the .pgpass file, even when sudo is used.

sethgoldin commented 6 years ago

This is a fix for https://github.com/sethgoldin/davinci-resolve-postgresql-workflow-tools/issues/12