Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstall Agent on Mac duplicates the agent #68

Open
itguylearner opened this issue Jun 30, 2021 · 2 comments
Open

Reinstall Agent on Mac duplicates the agent #68

itguylearner opened this issue Jun 30, 2021 · 2 comments

Comments

@itguylearner
Copy link

When I run the repair option of AutomateAPI on Mac computers it duplicates the computer in LT, but when I run the repair option using this code, they are quickly fixed and not duplicated:
#maxlength=100000
#timeout=900000
sudo /usr/local/ltechagent/uninstaller.sh
cd /tmp
curl -L -o 'LT_Install.zip' TOKENURL
unzip -o LT_Install.zip
chmod 755 LTSvc.mpkg
chmod 755 config.sh
sudo installer -pkg LTSvc.mpkg -target /
Do you think we can test/change the AutomateAPI code to use this one?
Thanks!

@tlphipps
Copy link

tlphipps commented Jul 2, 2021

I fully second and support this. Same experience for us. Would love to see this change implemented!!

@tlphipps
Copy link

tlphipps commented Jul 4, 2021

Quick update. I did more testing again today and found the above was still causing duplicate agents. HOWEVER, I found the following to properly upgrade the agent and get it back online without causing a duplicate. The key seems to be the "--preserve-agent-files" parameter you pass to the uninstaller.sh file.

Full command:
/usr/local/ltechagent/uninstaller.sh --preserve-agent-files
curl -o /tmp/LTechAgent.zip TOKENURL
unzip -o -d /tmp /tmp/LTechAgent.zip
installer -pkg /tmp/LTSvc.mpkg -target /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants