mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 16:15:42 +02:00
Use command to find certbot path
This commit is contained in:
@@ -59,7 +59,7 @@ trap CleanupExit INT
|
|||||||
for f in *.conf ; do
|
for f in *.conf ; do
|
||||||
echo -n testing "$f"...
|
echo -n testing "$f"...
|
||||||
Setup
|
Setup
|
||||||
RESULT=`echo c | sudo env "PATH=$PATH" certbot -vvvv --debug --staging --apache --register-unsafely-without-email --agree-tos certonly -t 2>&1`
|
RESULT=`echo c | sudo $(command -v certbot) -vvvv --debug --staging --apache --register-unsafely-without-email --agree-tos certonly -t 2>&1`
|
||||||
if echo $RESULT | grep -Eq \("Which names would you like"\|"mod_macro is not yet"\) ; then
|
if echo $RESULT | grep -Eq \("Which names would you like"\|"mod_macro is not yet"\) ; then
|
||||||
echo passed
|
echo passed
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user