summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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