mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
As we're now using launchctl to launch the backend and client processes, there's no need for the user-accessible login item routines.
remove_login_item has been left, to allow cleaning up of previous installs.
(cherry picked from commit 259b664269)
This commit is contained in:
parent
aaa814e427
commit
d76d5417e4
@ -21,19 +21,6 @@ fi
|
||||
/bin/launchctl load "/Library/LaunchDaemons/org.urbackup.client.plist"
|
||||
/bin/launchctl start "org.urbackup.client.backend"
|
||||
|
||||
if test ! -e "$1.silent"
|
||||
then
|
||||
#There is user interaction required here :(
|
||||
"$2/Contents/MacOS/urbackupclientgui" register_login_item
|
||||
else
|
||||
for console_user in $(ps aux | grep "loginwindow" | grep -v grep | awk '{print $1;}')
|
||||
do
|
||||
if [ "$console_user" != "root" ]
|
||||
then
|
||||
sudo -u "$console_user" "$2/Contents/MacOS/urbackupclientgui" daemon
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
/bin/launchctl load "/Library/LaunchAgents/org.urbackup.client.plist"
|
||||
/bin/launchctl start "org.urbackup.client.frontend"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user