Cannot run script or Files And Processes

fuddus
New Contributor

Cannot run Following on policy 

curl -o '/Users/Shared/agent.zip' https://ggd.masked/csm/profile/downloadMacAgent/id ; unzip -a /Users/Shared/agent.zip; cd /Users/Shared/AgentSetup; installer -pkg CAG.pkg -target /

Gives me Error on Policy

Result of command:
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 28 27.7M 28 8162k 0 0 4676k 0 0:00:06 0:00:01 0:00:05 4704k 100 27.7M 100 27.7M 0 0 11.8M 0 0:00:02 0:00:02 --:--:-- 11.9M Archive: /Users/Shared/agent.zip checkdir error: cannot create AgentSetup Read-only file system unable to process AgentSetup/. checkdir error: cannot create AgentSetup Read-only file system unable to process AgentSetup/CAG.pkg. checkdir error: cannot create AgentSetup Read-only file system unable to process AgentSetup/config.data. /bin/sh: line 0: cd: /Users/Shared/AgentSetup: No such file or directory installer: Error - the package path specified was invalid: 'CAG.pkg'.

 

I have tried folders /tmp and /private/tmp it gives same result.

Thanks

regards

TM

 

1 REPLY 1

fuddus
New Contributor

Got it to Work , it was unzipping it to local folder i had point it should unzip file.zip -d /private/tmp