diff --git a/upgrade/Monit.sh b/upgrade/Monit.sh index 523cafefcdc8d2e63dfcb99a4defe50ab8dfbb42..2542405247b405b71f148c4cb8c3b72305dde724 100644 --- a/upgrade/Monit.sh +++ b/upgrade/Monit.sh @@ -1,13 +1,13 @@ #!/bin/bash -echo "============= $(basename "$0") =================" +echo "=== RUN $(basename "$0") ===" -if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] +if [ ! -e $(dirname "$0")/../main.env ] then echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi -. $(pwd)/$(dirname "$0")/../main.env +. $(dirname "$0")/../main.env # Install monit if not installed and general config if [ -z "$(dpkg -l | grep ' monit ')" ]; then