Files
duplicati/ReleaseBuilder/Resources/MacOS/CLI/daemon-scripts/postinstall
T

12 lines
358 B
Bash
Raw Normal View History

2024-11-08 23:28:42 +01:00
#!/bin/sh
set -e
2024-12-13 09:55:25 +01:00
# Identify the user installing the package
USER=$(stat -f%Su /dev/console)
2024-11-08 23:28:42 +01:00
# Package is CLI, so we do not install the server launch agent automatically
2024-12-13 09:55:25 +01:00
# launchctl bootstrap gui/$(id -u "$USER") "/Library/LaunchAgents/com.duplicati.server.launchagent.plist"
# launchctl enable gui/$(id -u "$USER")/com.duplicati.server.launchagent
exit 0