diff --git a/certbotinstall b/certbotinstall index 44dad46..6372a9a 100755 --- a/certbotinstall +++ b/certbotinstall @@ -11,9 +11,9 @@ if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo "" ; exit ; fi # -# If snap is not installed then die +# If snapd is not installed or not working then die # -if ! command -v snap >/dev/null 2>&1; then echo "ERROR: snap is not installed aborting" ; exit 1 ; fi +if ! snap version >/dev/null 2>&1; then echo "ERROR: snapd is not installed or not working — aborting" ; exit 1 ; fi # # Function usage