2024-11-08 16:14:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2024-12-13 09:55:25 +01:00
|
|
|
# Identify the user installing the package
|
|
|
|
|
USER=$(stat -f%Su /dev/console)
|
|
|
|
|
|
|
|
|
|
if [ -f "/Library/LaunchAgents/com.duplicati.agent.launchagent.plist" ]; then
|
|
|
|
|
/bin/launchctl bootout gui/$(id -u "$USER")/com.duplicati.agent.launchagent
|
2024-11-08 16:14:44 +01:00
|
|
|
/bin/launchctl unload "/Library/LaunchAgents/com.duplicati.agent.launchagent.plist"
|
|
|
|
|
fi
|