nlaruelle
Verified User
- Joined
- Nov 12, 2023
- Messages
- 25
Make sure your working shell do have/usr/local/bin
directory in thePATH
environment variable.
Hello and thank you @fln !
Hopefully, I found your message that save my day.
With a brand new server, with a fresh install of Almalinux 9 (from OVHCloud template) and fresh DirectAdmin, I've experimented the same issue :
"bash: lego: command not found".
Before, echo $PATH return this output :
/root/.local/bin:/root/bin:/sbin:/bin:/usr/sbin:/usr/bin
Then I did
Code:
export PATH=$PATH:/usr/local/bin
And try again:
Code:
lego --version
lego version 4.14.2-SNAPSHOT-cd63b325 linux/amd64
So this command success
Code:
/usr/local/directadmin/scripts/letsencrypt.sh server_cert
So I've
Code:
nano ~/.bashrc
And just paste this line
at the very end of the file to make this change permanent.export PATH=$PATH:/usr/local/bin
Is there any chance to release a patch that check if :/usr/local/bin is in the PATH and add it if that's note the case?
Thanks!