Browse Source

Detect binary location

master
Brielle Bruns 3 years ago
parent
commit
f80ab6271b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      gen-unifi-cert.sh

+ 2
- 2
gen-unifi-cert.sh View File

@@ -30,10 +30,10 @@ DEFAULTLEBINARY="/usr/bin/certbot /usr/bin/letsencrypt /usr/sbin/certbot
/usr/local/bin/letsencrypt /usr/local/sbin/letsencrypt
/usr/src/letsencrypt/certbot-auto /usr/src/letsencrypt/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
for $i in ${DEFAULTLEBINARY};
for i in ${DEFAULTLEBINARY}; do
if [[ -x ${i} ]]; then
LEBINARY=${i}
break


Loading…
Cancel
Save