diff options
Diffstat (limited to 'system/kapacitor/kapacitor.SlackBuild')
-rw-r--r-- | system/kapacitor/kapacitor.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/system/kapacitor/kapacitor.SlackBuild b/system/kapacitor/kapacitor.SlackBuild index d18cf6de5e..2a9d276b46 100644 --- a/system/kapacitor/kapacitor.SlackBuild +++ b/system/kapacitor/kapacitor.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Kapacitor -# Copyright 2017-2021 Ebben Aries <slackbuilds@dscp.org> +# Copyright 2017-2024 Ebben Aries <slackbuilds@dscp.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=kapacitor -VERSION=${VERSION:-1.6.1} +VERSION=${VERSION:-1.7.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,14 +39,18 @@ if [ -z "$ARCH" ]; then fi UIDGID=351 + +nobuild() { + echo " You must have the \"$PRGNAM\" group and user to run this script." + echo " # groupadd -g $UIDGID $PRGNAM" + echo " # useradd -u $UIDGID -s /bin/false -d /var/lib/kapacitor -g $PRGNAM $PRGNAM" + exit 1 +} + if ! getent group $PRGNAM; then - echo " You must have the \"$PRGNAM\" group to run this script." - echo " # groupadd -g $UIDGID $PRGNAM" - exit 1 + nobuild elif ! getent passwd $PRGNAM; then - echo " You must have the \"$PRGNAM\" user to run this script." - echo " # useradd -u $UIDGID -s /bin/false -d /var/lib/kapacitor -g $PRGNAM $PRGNAM" - exit 1 + nobuild fi # If the variable PRINT_PACKAGE_NAME is set, then this script will report what |