Joshua Levitsky, CISSP
Results
3
comments of
Joshua Levitsky, CISSP
The delete issue you can fix by moving this line; launchctl unload /Library/LaunchDaemons/removeAdmin.plist Because the removeAdmin.sh will quit as soon as that command happens so move it 2 lines lower....
Above the "fi" line so it's still in the if condition.
This line causes the removeAdmin.sh to terminate and the actions after it don't happen which include the log collection and the removal of the LaunchDaemon. Just move this line to...