getssl icon indicating copy to clipboard operation
getssl copied to clipboard

curl needs a variable definition

Open bielius opened this issue 3 years ago • 4 comments

If you have more then one "curl" installed, then it's necessary to define which "curl" should used by "getssl". I specially have installed one curl in /usr/bin/curl (the old one) and another in /usr/local/bin/curl (the new one).

Running from the command line is no problem, because the PATH is set. But running from crontab it's difficult to define the right curl to use.

Thanks Bielius

bielius avatar Feb 17 '21 18:02 bielius

Hi @bielius

I can make that change, but wouldn't it be easier to just specify the path in your crontab?

e.g.

23  5 * * * export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin && /root/scripts/getssl -w /etc/getssl -u -a -q

timkimber avatar Feb 18 '21 17:02 timkimber

Hi @timkimber,

you are right this is a solution, but anyway I find it's more clean to have a variable def. inside the script. Please close the case if you want. It's not an error, it's a nice-to-have ;-)

And thanks for the great script! I use it for 4 domains.

Greetings, bielius

bielius avatar Feb 19 '21 19:02 bielius

Hi @bielius I'm happy to make the change as it will simplify some of the code (around ensuring that the user agent is always specified), just wanted you to know there was a quick fix

timkimber avatar Feb 21 '21 17:02 timkimber

Hi @timkimber,

thanks for all!!!

bielius avatar Feb 26 '21 18:02 bielius