You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full script #!/bin/sh echo "This will uninstall the Lithnet Access Manager Agent, and remove all configuration for this machine" read -p "Are you sure? " -n 1 -r echo if [ $REPLY =~ ^[Yy]$ ] then /bin/launchctl unload "/Library/LaunchDaemons/io.lithnet.accessmanager.agent.plist" rm "/Library/LaunchDaemons/io.lithnet.accessmanager.agent.plist" rm -rf "/Library/Application Support/Lithnet/AccessManagerAgent" fi
but the uninstall.sh is not there, instead it is here
/Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
Further problems, when running the script sh /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
it throws an error
sh /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
This will uninstall the Lithnet Access Manager Agent, and remove all configuration for this machine
Are you sure? y
/Library/Application Support/Lithnet/AccessManagerAgent/Core/uninstall.sh: line 5: [: =~: binary operator expected
If we ran the lines individually, the 1st one fails
Warning: Expecting a LaunchAgents path since the command was ran as root. Got LaunchDaemons instead.
`launchctl bootout` is a recommended alternative.
Unload failed: 5: Input/output error
Try running `launchctl bootout` as root for richer errors.
The text was updated successfully, but these errors were encountered:
MacOS Agent Uninstall
Full script
#!/bin/sh echo "This will uninstall the Lithnet Access Manager Agent, and remove all configuration for this machine" read -p "Are you sure? " -n 1 -r echo if [ $REPLY =~ ^[Yy]$ ] then /bin/launchctl unload "/Library/LaunchDaemons/io.lithnet.accessmanager.agent.plist" rm "/Library/LaunchDaemons/io.lithnet.accessmanager.agent.plist" rm -rf "/Library/Application Support/Lithnet/AccessManagerAgent" fi
The link https://docs.lithnet.io/ams/installation/installing-the-access-manager-agent/installing-the-access-manager-agent-macos describes the following steps
but the uninstall.sh is not there, instead it is here
/Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
Further problems, when running the script
sh /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
it throws an error
sh /Library/Application\ Support/Lithnet/AccessManagerAgent/Core/uninstall.sh
This will uninstall the Lithnet Access Manager Agent, and remove all configuration for this machine
Are you sure? y
/Library/Application Support/Lithnet/AccessManagerAgent/Core/uninstall.sh: line 5: [: =~: binary operator expected
If we ran the lines individually, the 1st one fails
/bin/launchctl unload "/Library/LaunchDaemons/io.lithnet.accessmanager.agent.plist"
The text was updated successfully, but these errors were encountered: