cd /tmp curl -O https://packagesstore.blob.core.windows.net/installers/Agent/AteraAgentInstallerBeta.pkg if ! grep -q IntegratorLogin "/Library/Application Support/com.atera.ateraagent/regstore.json"; then mkdir -p "/Library/Application Support/com.atera.ateraagent" touch /Library/Application\ Support/com.atera.ateraagent/regstore.json chmod 777 /Library/Application\ Support/com.atera.ateraagent/regstore.json echo "{CompanyId: '18',IntegratorLogin:'hosting@sdit.pro'}" > /Library/Application\ Support/com.atera.ateraagent/regstore.json fi installer -allowUntrusted -verboseR -pkg "/tmp/AteraAgentInstallerBeta.pkg" -target /