Skip to content

Commit

Permalink
Restart defgaurd-service on re-installation (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
moubctez authored Oct 7, 2024
1 parent 3e25475 commit 21f2c9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src-tauri/resources-macos/resources/net.defguard.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<string>/usr/local/bin/defguard-service</string>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
</plist>
3 changes: 2 additions & 1 deletion src-tauri/resources-macos/scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ln -sf ${BINARY_PATH}/${SERVICE_BINARY} /usr/local/bin/${SERVICE_BINARY}
# Launch daemon
ln -sf ${RESOURCES_PATH}/${DAEMON_PROPERTY_FILE} /Library/LaunchDaemons/${DAEMON_PROPERTY_FILE}
sudo launchctl load /Library/LaunchDaemons/${DAEMON_PROPERTY_FILE}
sudo launchctl start ${DAEMON_NAME}
# Restart
sudo launchctl stop ${DAEMON_NAME}

echo "Post installation process finished"

0 comments on commit 21f2c9c

Please sign in to comment.