Activate brew-updater launch daemons immediately

This commit is contained in:
Rezart Qelibari
2022-04-06 19:30:06 +02:00
parent 9385a345b4
commit dd3ea08ea1

View File

@@ -214,6 +214,7 @@ function createLaunchDaemonsPlist() {
</plist>" > "${launcherPath}" </plist>" > "${launcherPath}"
chown root:wheel ${launcherPath} chown root:wheel ${launcherPath}
chmod u=rw,go=r ${launcherPath} chmod u=rw,go=r ${launcherPath}
launchctl bootstrap system ${launcherPath}
} }
function installHomebrewUpdater() { function installHomebrewUpdater() {
@@ -256,6 +257,7 @@ function getExecPrerequisites() {
[grep]='' [grep]=''
[sort]='' [sort]=''
[awk]='' [awk]=''
[launchctl]=''
[sysadminctl]='' [sysadminctl]=''
) )
requireRootPrivileges requireRootPrivileges