From 53d14376c3324f4751d2d54b6ddf0c5441d1b7fe Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 8 May 2023 09:54:24 +0200 Subject: [PATCH] Certbot Utility improvements --- src/utils/util_certbot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/util_certbot.cpp b/src/utils/util_certbot.cpp index 0fd2416f..1339b4f8 100644 --- a/src/utils/util_certbot.cpp +++ b/src/utils/util_certbot.cpp @@ -127,13 +127,13 @@ int main(int argc, char **argv){ Util::wait(1000); } if (!counter){ - FAIL_MSG("Timed out!"); + FAIL_MSG("Timed out! Is " APPNAME " running, and is certbot being ran under the same system user " APPNAME " is running under?"); return 1; } INFO_MSG("Success!"); Util::wait(5000); }else{ - if (currConf["certbot"].asStringRef() == cbCombo){ + if (currConf.isMember("certbot") && currConf["certbot"].asStringRef() == cbCombo){ INFO_MSG("Config already good - no changes needed"); return 0; } @@ -152,7 +152,7 @@ int main(int argc, char **argv){ Util::wait(1000); } if (!counter){ - FAIL_MSG("Timed out!"); + FAIL_MSG("Timed out! Is " APPNAME " running, and is certbot being ran under the same system user " APPNAME " is running under?"); return 1; } INFO_MSG("Success!");