Commit eb197740 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[FEATURE] Remove permission changes (we use vagrant-bindfs now)

parent 5c3b4b7c
......@@ -68,27 +68,6 @@ include_recipe 'git'
include_recipe 'rsync'
package 'unzip'
#################################################
### Fix the user/group id of the vagrant user ###
#################################################
bash 'changeUserId' do
cwd '/home/vagrant/'
code <<-EOF
# don't change the group id as this is usually a lower one on e.g. OSX that is already taken by the system
#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
chown -R vagrant:vagrant /home/vagrant
EOF
action :run
end
##########################################################
### Install cachefilesd to improve the NFS performance ###
##########################################################
......
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