aboutsummaryrefslogtreecommitdiff
path: root/system/apcupsd
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-04 11:41:06 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-05 16:01:32 +0700
commit7f26b9929fe95171f3719de3f601b696a2def263 (patch)
treec695221c62ff155a5a657883822af40538d24f23 /system/apcupsd
parente6362e61d4cb76998694df32c864f5ceb3d95d54 (diff)
All: SlackBuilds run in the directory they are in
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/apcupsd')
-rw-r--r--system/apcupsd/apcupsd.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/apcupsd/apcupsd.SlackBuild b/system/apcupsd/apcupsd.SlackBuild
index bf16534ed82d..ea8efaffa8f4 100644
--- a/system/apcupsd/apcupsd.SlackBuild
+++ b/system/apcupsd/apcupsd.SlackBuild
@@ -25,6 +25,8 @@
# Modified 3/3/2009 by Christopher Walker <kris240376@gmail.com>
# * added log rotation
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=apcupsd
VERSION=${VERSION:-3.14.14}
BUILD=${BUILD:-2}
@@ -38,7 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}