bobjolliffe / dhis2-tools-ng

Next generation dhis2-tools
31 stars 60 forks source link

Wrong path to interpreter on ssl_setup.sh #20

Open FelixOngati opened 2 years ago

FelixOngati commented 2 years ago

When you run sudo ./ssh_setup.sh, it throws an error saying _sudo: unable to execute ./sslsetup.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 _sslsetup.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.

GwamakaCharles commented 2 years ago

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