From a12399018c6c0e0721c54c8982aacc53e8b823eb Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 18 Nov 2016 10:51:12 -0800 Subject: 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 --- packaging/macosx/Scripts/wireshark-postinstall.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packaging/macosx') 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 -- cgit v1.2.1