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>
This commit is contained in:
Guy Harris 2016-11-18 10:51:12 -08:00
parent 58c4a4e018
commit a12399018c
1 changed files with 8 additions and 0 deletions

View File

@ -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