]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding etc/profile.d/pp-admintools.sh
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Dec 2021 10:20:51 +0000 (11:20 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Dec 2021 10:20:51 +0000 (11:20 +0100)
etc/profile.d/pp-admintools.sh [new file with mode: 0644]

diff --git a/etc/profile.d/pp-admintools.sh b/etc/profile.d/pp-admintools.sh
new file mode 100644 (file)
index 0000000..870b9bc
--- /dev/null
@@ -0,0 +1,10 @@
+# Add /usr/libexec/pixelpark to the path for sh compatible users
+
+if [ -d /usr/libexec/pixelpark ] ; then
+    if [ -z "${PATH-}" ] ; then
+        export PATH=/usr/libexec/pixelpark
+    elif ! echo "${PATH}" | grep -q /usr/libexec/pixelpark ; then
+        export PATH="${PATH}:/usr/libexec/pixelpark"
+    fi
+fi
+