Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arcgis-insights: The recipe attempts to stop portal on non-portal machines #403

Open
ptierno opened this issue Dec 26, 2024 · 0 comments
Open

Comments

@ptierno
Copy link

ptierno commented Dec 26, 2024

When running the cookbook on non-portal machine's I noticed that the recipe attempts to stop the portal service regardless if it is a portal machine resulting in a failed chef client run.

# Stop Portal to start it later using SystemD service
cmd = node['arcgis']['portal']['stop_tool']
if node['arcgis']['run_as_superuser']
cmd = Mixlib::ShellOut.new("su #{node['arcgis']['run_as_user']} -c \"#{cmd}\"", {:timeout => 30})
else
cmd = Mixlib::ShellOut.new(cmd, {:timeout => 30})
end
cmd.run_command
cmd.error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant