Detect binary location
parent
d5e18ddde0
commit
f80ab6271b
|
@ -30,10 +30,10 @@ DEFAULTLEBINARY="/usr/bin/certbot /usr/bin/letsencrypt /usr/sbin/certbot
|
||||||
/usr/local/bin/letsencrypt /usr/local/sbin/letsencrypt
|
/usr/local/bin/letsencrypt /usr/local/sbin/letsencrypt
|
||||||
/usr/src/letsencrypt/certbot-auto /usr/src/letsencrypt/letsencrypt-auto
|
/usr/src/letsencrypt/certbot-auto /usr/src/letsencrypt/letsencrypt-auto
|
||||||
/usr/src/certbot/certbot-auto /usr/src/certbot/letsencrypt-auto
|
/usr/src/certbot/certbot-auto /usr/src/certbot/letsencrypt-auto
|
||||||
/usr/src/certbot-master/certbot-auto /usr/src/certbot-master/letsencrypt-auto
|
/usr/src/certbot-master/certbot-auto /usr/src/certbot-master/letsencrypt-auto"
|
||||||
|
|
||||||
if [[ ! -v LEBINARY ]]; then
|
if [[ ! -v LEBINARY ]]; then
|
||||||
for $i in ${DEFAULTLEBINARY};
|
for i in ${DEFAULTLEBINARY}; do
|
||||||
if [[ -x ${i} ]]; then
|
if [[ -x ${i} ]]; then
|
||||||
LEBINARY=${i}
|
LEBINARY=${i}
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue