From e4b529795bbd2f22f79d38b29513dc3536d594fd Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Fri, 14 Jun 2024 14:04:23 -0700 Subject: [PATCH] check for existing Vhost Stack install --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index e41b2fb..3b3b263 100755 --- a/install.sh +++ b/install.sh @@ -25,6 +25,12 @@ if [ -d "/etc/letsencrypt/" ] || [ -d "/opt/certbot/" ] || [ -f "/usr/bin/certbo exit 1 fi +if [ ! -f "/usr/local/bin/vhost.sh" ]; then + echo "NOTICE: This package requires that Vhost Stack is installed first." + echo "https://git.stack-source.com/msb/vhost-stack" + exit 1 +fi + # Old apt installation instructions #apt-get update #DEBIAN_FRONTEND=noninteractive apt-get -y install certbot python3-certbot python3-certbot-apache