Today I updated to Mojave because the notifications were killing me.
A script I have in automator to launch apache server on startup stopped working after the update.
This is all this automator app is doing
echo mypassphrase | sudo -S apachectl restart
Strangely, this exact same line works fine if I run it from the terminal
I tried using the following AppleScripts that some people recommend online:
do shell script "echo mypassphrase | sudo -S apachectl restart" with administrator privileges
do shell script "sudo -S apachectl restart" with administrator privileges
do shell script "sudo apachectl restart" with administrator privileges
do shell script "apachectl restart" with administrator privileges
None of them work. Launching the app manually doesn't work either. The script only works if I'm running it from Terminal.app
I've also given this app (autostartapache.app) the permission to control my computer on System Preferences > Security and Privacy. I have also restarted the machine. The app runs on startup but doesn't start apache, running the app manually won't work either, running from Automator doesn't start apache either.
Thinking of downgrading to High Sierra that was working fine, I don't really like this update anyway and there really isn't anything new to the user other than the few apps they added (news, stock, etc). My sister also told me that her Wacom device to do digital art is not working well after the update. This issue seems to be related to the changes they did to security (everything needing permissions now).
appleeventsd
& Automator & Automator Runner in Full Disk Access, but the individual scripts are in Automation.