Commit 90745d70 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Add the selected main group id to the user

parent f8b741bd
......@@ -60,6 +60,8 @@ bash 'changeUserId' do
#cat /etc/group | sed s'/vagrant:x:1000/vagrant:x:#{data_bag['groupId']}/' > /home/vagrant/group.bak
#mv /home/vagrant/group.bak /etc/group
sudo usermod -aG #{data_bag['groupId']} vagrant
cat /etc/passwd | sed s'/vagrant:x:1000:1000/vagrant:x:#{data_bag['userId']}:1000/' > /home/vagrant/passwd.bak
mv /home/vagrant/passwd.bak /etc/passwd
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment