st2-packages
st2-packages copied to clipboard
account for unique user group
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.