From a344e1d6dba9fec247a2c815c03b450be18b6f4f Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Fri, 14 Jun 2024 14:05:03 -0700 Subject: [PATCH] require Vhost Stack install --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 48e6ee5..6df6431 100755 --- a/install.sh +++ b/install.sh @@ -10,6 +10,12 @@ if [ "${EUID}" -ne 0 ]; then exit 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 + # download & install wp-cli curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar mv wp-cli.phar /usr/local/bin/wp