summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-11-18 10:51:12 -0800
committerGuy Harris <guy@alum.mit.edu>2016-11-18 18:52:01 +0000
commita12399018c6c0e0721c54c8982aacc53e8b823eb (patch)
tree1b9e5a512572c279c0d4f1d37b0181a8e39cc9c2 /packaging
parent58c4a4e018a3e1086ccbea773a05fa3f005a1a14 (diff)
downloadwireshark-a12399018c6c0e0721c54c8982aacc53e8b823eb.tar.gz
Create /etc/paths.d and /etc/manpaths.d if they don't exist.
Bug: 13152 Change-Id: I6ecfd1e3f7f10a3a63b44b0d8bf137f0b3450391 Reviewed-on: https://code.wireshark.org/review/18871 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/Scripts/wireshark-postinstall.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/packaging/macosx/Scripts/wireshark-postinstall.sh b/packaging/macosx/Scripts/wireshark-postinstall.sh
index 3963a43724..98c0e683cd 100755
--- a/packaging/macosx/Scripts/wireshark-postinstall.sh
+++ b/packaging/macosx/Scripts/wireshark-postinstall.sh
@@ -24,6 +24,10 @@ done
#
WSPATH="$2/Wireshark.app/Contents/MacOS"
+if [ ! -d /etc/paths.d ]
+then
+ mkdir -m u=rwx,g=rx,o=rx /etc/paths.d
+fi
echo $WSPATH > /etc/paths.d/Wireshark
# Setting MANPATH
@@ -31,4 +35,8 @@ echo $WSPATH > /etc/paths.d/Wireshark
#
WSMANPATH="$2/Wireshark.app/Contents/Resources/share/man"
+if [ ! -d /etc/manpaths.d ]
+then
+ mkdir -m u=rwx,g=rx,o=rx /etc/manpaths.d
+fi
echo $WSMANPATH > /etc/manpaths.d/Wireshark