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..?
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