Skip to content

Commit

Permalink
Merge pull request #1020 from hwoarang/ensure-vagrant-group-exists
Browse files Browse the repository at this point in the history
opensuse: Create a new 'vagrant' group for vagrant user
  • Loading branch information
Seth Thomas authored Apr 10, 2018
2 parents 4f1a654 + df5cab9 commit 179ca6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions opensuse/opensuse-leap-42.3-x86_64.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
"../_common/virtualbox.sh",
"../_common/vmware.sh",
"../_common/parallels.sh",
"scripts/vagrant_group.sh",
"scripts/sudoers.sh",
"scripts/zypper-locks.sh",
"scripts/remove-dvd-source.sh",
Expand Down
7 changes: 7 additions & 0 deletions opensuse/scripts/vagrant_group.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh -eux

# User 'vagrant' belogs to the 'users' group by default so we need to
# create a new group 'vagrant' and put our user there.

groupadd -f vagrant
gpasswd -a vagrant vagrant

0 comments on commit 179ca6d

Please sign in to comment.