0

I am trying to read $env:CATALINA_HOME from hookscript of aws codedeploy. But i get blank value instead of actual value. When the script run independently on machine it returns actual value.

Is there way to read system environment variable from hookscript..?

PRASANNA SARAF
  • 333
  • 1
  • 4
  • 17

1 Answers1

0

CodeDeploy agent service runs as Local System user. So make sure your environment variable is set on system level. That way it will be visible to all users. -Surya

Surya Bala
  • 261
  • 1
  • 5