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

illegal time format #38

Closed nicolasforest closed 1 year ago

nicolasforest commented 1 year ago

We've tested this on 2 differents workstation with the Resolve DB server installed and we are getting a illegal time format error when running sudo sh macos-install.sh

Any idea why?

Capture d’écran, le 2023-08-18 à 10 13 42
sethgoldin commented 1 year ago

What version of macOS is this? The fact that you're seeing an error on line 1 leads me to believe you have some kind of misconfiguration with the bash that's installed.

nicolasforest commented 1 year ago

Hi the Os of both station are Monterey or Ventura. They both give me that error.

sethgoldin commented 1 year ago

Can you record a Loom of what it looks like when you attempt to run the script?

sethgoldin commented 1 year ago

You might also consider substituting bash for sh. In other words, try running sudo bash macos-install.sh.

nicolasforest commented 1 year ago

Hi sorry it took some time for me to test it again, but substituing the sh for bash isn't working. I'm having the same issue. There is nothing to record with Loom. This is what I'm getting:

nicolasforest@Mac-mini-de-Nicolas Downloads % sudo bash macos-install.sh date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] date: illegal time format usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]] [-I[date | hours | minutes | seconds]] [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] macos-install.sh: line 1: payload:allShortcutsEnabled:false: command not found

nicolasforest commented 1 year ago

ok my bad! I've been able to make it work. Terminal didn't had Full disk access in MacOs Security.