st2-packages icon indicating copy to clipboard operation
st2-packages copied to clipboard

account for unique user group

Open lattisimo opened this issue 3 years ago • 5 comments

Use id -gn to get the user group for curl|bash stackstorm installer.


The issue I had was installing on a box that had LDAP configured and my user group is 'domain users' since the script just assumed the group matched the user so the chown command fails and the script stops executing. I can avoid the issue by 'sudo su' but I realized that if I get the user's group with 'id -gn' then there is no assumption of what that value should be. This would likely be relevant on the other scripts.

lattisimo avatar Oct 06 '20 21:10 lattisimo