./daily.sh error

When running ./daily.sh I get the following error:

/opt/librenms/.env: line 6: syntax error near unexpected token )' /opt/librenms/.env: line 6: DB_PASSWORD=xxxxxxxxxxxxxxx’
Updating to latest codebase OK
/opt/librenms/.env: line 6: syntax error near unexpected token )' /opt/librenms/.env: line 6: DB_PASSWORD=xxxxxxxxxxxxxxx’
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

I ‘x’d’ out the password, but yes there are a couple parentheses in it. Do I need to change the password to not have these?

Thanks

Are there quotes before and after the password string? In your masked example the one at the beginning is missing.

Hmm it didnt paste the first time:

/opt/librenms/.env: line 6: syntax error near unexpected token `)'
/opt/librenms/.env: line 6: `DB_PASSWORD=xxxxxxxxxxxxxxxxxxx'

The .env file doesnt have quotes in any of the lines in it fyi… There is not a quote nor apostrophe in the password either.

Hm

Maybe try to mask the password with quotes.

Or try to avoid such special chars.

That’s how I act for some years and still able to make secure passwords.

Adding quotes around the password in /opt/librenms/.env did the trick. Thanks!