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

Update macos-install.sh #35

Closed Walterfilms closed 1 year ago

Walterfilms commented 1 year ago

Hi, i thinks there was a typo there with /root.pgpass

otherwise i don't get why you abandoned the old

if [ ! -f ~/.pgpass ]; then touch ~/.pgpass echo "localhost:5432:*:postgres:DaVinci" > ~/.pgpass We also need to make sure that that .pgpass file has the correct permissions of 600: chmod 600 ~/.pgpass fi

which work better for me and i don't need to sudo...

anyway thanks a lot for the updated commands ;)

sethgoldin commented 1 year ago

Thanks for this. Definitely a typo.

When I tried to update this script and test it on Ventura, I kept getting warnings about how I should be running launchd daemons as root instead of launchd agents for individual users. Looking into it a little bit, it seemed like this was best practice.

One nice benefit about this is that the daemons run at boot, before any user even logs in.