diff --git a/config/build/mac/pkg/scripts/postinstall b/config/build/mac/pkg/scripts/postinstall index eaa7a45..8672912 100755 --- a/config/build/mac/pkg/scripts/postinstall +++ b/config/build/mac/pkg/scripts/postinstall @@ -2,7 +2,10 @@ PRODUCT_NAME="overFlow-NetworkScanner" -cp "$2/$PRODUCT_NAME.app/Contents/Resources/ChmodBPF" "/Library/Application Support/overFlow-NetworkScanner/" +mkdir "/Library/Application Support/$PRODUCT_NAME" + +cp -r "$2/$PRODUCT_NAME.app/Contents/Resources/ChmodBPF" "/Library/Application Support/overFlow-NetworkScanner/ChmodBPF" +chmod 775 "/Library/Application Support/overFlow-NetworkScanner/ChmodBPF/ChmodBPF" CHMOD_BPF="/Library/LaunchDaemons/com.loafle.overflow.scanner.ChmodBPF.plist" BPF_GROUP="access_bpf"