Skip to main content
Question

Deploying pkg with curl

  • March 18, 2021
  • 29 replies
  • 270 views

Show first post

29 replies

Forum|alt.badge.img+3
  • New Contributor
  • October 1, 2022

when I run this it does not download the full pkg file.  am I missing something?


jeroschwab
Forum|alt.badge.img+1
  • New Contributor
  • February 15, 2023

I corrected it and the install works. I'm however stuck with the same problem, it's just a generic installer without a login.

At this point I will need to figure out how to make the agent log in to my account after I have deployed it. This sounds very tricky and specific but is my only option at the moment.

Thanks again a thousand times for your help.


Try this:

#!/bin/bash [ -f "/Library/Application Support/com.atera.ateraagent/regstore.json" ] && rm "/Library/Application Support/com.atera.ateraagent/regstore.json";mkdir -p "/Library/Application Support/com.atera.ateraagent" && echo '{"CompanyId": "NumberOfTheCompanyID", "IntegratorLogin": "mail@integrator.com"}' >> "/Library/Application Support/com.atera.ateraagent/regstore.json" && curl -L -o '/tmp/AgentInstaller.pkg' "https://Production.atera.com/GetAgent/mac/?0033z00002yUazFAAS" && (sudo installer -pkg /tmp/AgentInstaller.pkg -target /)

it works for me :-)


Forum|alt.badge.img+1
  • New Contributor
  • June 25, 2024

I corrected it and the install works. I'm however stuck with the same problem, it's just a generic installer without a login.

At this point I will need to figure out how to make the agent log in to my account after I have deployed it. This sounds very tricky and specific but is my only option at the moment.

Thanks again a thousand times for your help.


Hi, Did you ever figure this out? im in the same boat as you


Forum|alt.badge.img+1
  • New Contributor
  • June 25, 2024

I corrected it and the install works. I'm however stuck with the same problem, it's just a generic installer without a login.

At this point I will need to figure out how to make the agent log in to my account after I have deployed it. This sounds very tricky and specific but is my only option at the moment.

Thanks again a thousand times for your help.


Hi,

Did you figure this out? having the same issue