dhis2-tools-ng icon indicating copy to clipboard operation
dhis2-tools-ng copied to clipboard

Wrong path to interpreter on ssl_setup.sh

Open FelixOngati opened this issue 3 years ago • 1 comments

When you run sudo ./ssh_setup.sh, it throws an error saying sudo: unable to execute ./ssl_setup.sh: No such file or directory, see the screenshot below; Screenshot from 2022-01-12 12-45-07 I found out that this is because ssl_setup.sh is using the wrong path to env. On Linux systems, the env binary is normally in /usr/bin and not /bin. Changing line 1 from #!/bin/env bash to #!/usr/bin/env bash resolves the issue.

FelixOngati avatar Jan 12 '22 09:01 FelixOngati

or, you can just run sudo bash ./ssl_setup.sh

GwamakaCharles avatar Feb 10 '22 12:02 GwamakaCharles