Unable to install SSL (lets-encrypt)

Hi there, I am trying to install let-encrypt for my site using the below command.
sudo -H bench setup lets-encrypt [site-name]

It fails with ‘sudo: bench: command not found’. As it was on Ubuntu 18v, I tried removing the -H on the command above which still failed.

I am running this as frappe user from frappe bench directory. Can anyone help me resolve this please? Thanks.

This may help Setup production problem - superuser privileges required - #9 by clarkej

Thanks. I used sudo env “PATH=$PATH” before the bench command and it worked as expected.

1 Like