How to restart LuLu using Bash
Im trying to Implement something like Little Snitch Profiles , and I created to plist files and made Bash script (using ChatGPT) to switch between, but I have problem restarting the app, tried to kill the process then open the application but didn't work, because it requiring allow network extensions and permissions again.
So Anyone knows how to restart it using Bash please?
#!/bin/bash
PROFILE=$1
RULES_DIR=~/LuluRules
if [ "$PROFILE" == "apple-update-enable" ]; then
cp "$RULES_DIR/apple-update-rules.plist" /Library/Objective-See/LuLu/rules.plist
elif [ "$PROFILE" == "apple-update-disable" ]; then
cp "$RULES_DIR/apple-disable-rules.plist" /Library/Objective-See/LuLu/rules.plist
else
echo "Unknown profile"
exit 1
fi
Tried to do something like
killall LuLu
open /Applications/LuLu.app
AFAIK, as a "Security" feature, Apple doesn't allow System (Network) Extensions to be unloaded via the CLI (on non-MDM'd machines). This is to prevent, for example, malware from killing the core components of security tools.
Ah, that makes sense — thanks for the heads up!