From c575728eead4f5aca642a4b6140e64c47d760a68 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 9 Aug 2019 18:51:05 +0300 Subject: [PATCH] acmesh-ssl.sh: add a comment which lack bothers me --- bash/acmesh-ssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bash/acmesh-ssl.sh b/bash/acmesh-ssl.sh index 456bb70..e4ecf86 100755 --- a/bash/acmesh-ssl.sh +++ b/bash/acmesh-ssl.sh @@ -7,6 +7,7 @@ # certificate copies. # Used with crontab as root, remember `@daily bash /root/acmesh-ssl.sh >/dev/null 2>&1` +# Echo a warning and exit if NOT running as root if [ "$(id -u)" != "0" ]; then echo "acme.sh prefers root, this script demands it." 1>&2 exit 1