2016-04-20 21:23:07 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2024-12-13 09:55:25 +01:00
|
|
|
set +e
|
|
|
|
|
|
|
|
|
|
# Identify the user installing the package
|
|
|
|
|
USER=$(stat -f%Su /dev/console)
|
|
|
|
|
|
|
|
|
|
if [ -f "/Library/LaunchAgents/com.duplicati.app.launchagent.plist" ]; then
|
|
|
|
|
/bin/launchctl bootout gui/$(id -u "$USER")/com.duplicati.app.launchagent
|
2016-04-21 11:15:14 +02:00
|
|
|
/bin/launchctl unload "/Library/LaunchAgents/com.duplicati.app.launchagent.plist"
|
2024-12-13 09:55:25 +01:00
|
|
|
fi
|
|
|
|
|
|