Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chef Cookbooks
ubuntu_base
Commits
eb197740
Commit
eb197740
authored
Aug 25, 2020
by
Stefan Galinski
🎮
Browse files
[FEATURE] Remove permission changes (we use vagrant-bindfs now)
parent
5c3b4b7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
recipes/default.rb
View file @
eb197740
...
...
@@ -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 ###
##########################################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment