diff options
author | Jeremy Thomerson <jeremy@thomersonfamily.com> | 2011-03-30 19:18:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-31 12:52:46 +0000 |
commit | a9e48ab1b3c3d890da0009f28d67e6ede86d9d1f (patch) | |
tree | 4460cb0d9927f44e29b606e694e676b301963f7c /setup-alpine-web.in | |
parent | fb0bc52b78c059b234b1eac9cbb17e2ec4771900 (diff) | |
download | alpine-conf-a9e48ab1b3c3d890da0009f28d67e6ede86d9d1f.tar.bz2 alpine-conf-a9e48ab1b3c3d890da0009f28d67e6ede86d9d1f.tar.xz |
require root to run setup-alpine-web
Diffstat (limited to 'setup-alpine-web.in')
-rw-r--r-- | setup-alpine-web.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setup-alpine-web.in b/setup-alpine-web.in index 2d5d9cb..3eaed7d 100644 --- a/setup-alpine-web.in +++ b/setup-alpine-web.in @@ -123,6 +123,12 @@ EOF exit 0 } +# require root +if [ "$(id -u)" != "0" ]; then + echo "ERROR: This script must be run as root" 1>&2 + exit 1 +fi + # parse args while getopts "b:c:d:H:hR:" opts; do case "$opts" in |