aboutsummaryrefslogtreecommitdiff
path: root/system/telegraf/telegraf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/telegraf/telegraf.SlackBuild')
-rw-r--r--system/telegraf/telegraf.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/telegraf/telegraf.SlackBuild b/system/telegraf/telegraf.SlackBuild
index cffd207327abe..bd159e8038b86 100644
--- a/system/telegraf/telegraf.SlackBuild
+++ b/system/telegraf/telegraf.SlackBuild
@@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=telegraf
VERSION=${VERSION:-1.19.0}
BUILD=${BUILD:-1}
@@ -46,7 +48,6 @@ elif ! getent passwd $PRGNAM; then
exit 1
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}