Skip to content

Commit

Permalink
'mysql' user is not a system user by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Dowling committed Sep 14, 2016
1 parent f93bfe3 commit 1550c8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 0 additions & 11 deletions recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,12 @@
supports :manage_home => true
home "/home/#{node.ndb.user}"
action :create
system true
shell "/bin/bash"
not_if "getent passwd #{node.ndb.user}"
end

# user node.ndb.user do
# supports :manage_home => true
# home "/home/#{node.ndb.user}"
# action :create
# system true
# shell "/bin/bash"
# not_if "getent passwd #{node.ndb.user}"
# end

group node.ndb.group do
action :modify
# members ["#{node.ndb.user}", "#{node.ndb.user}" ]
members ["#{node.ndb.user}"]
append true
end
Expand Down
3 changes: 3 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash


cb=$(grep "^name\s*" metadata.rb | perl -p -e 's/"//g' | perl -p -e "s/name\s*//g")

echo "Releasing cookbook: $cb to Chef supermarket"
if [ $cb == "" ] ; then
echo "Couldnt determine cookbook name. Exiting..."
fi

rm -f Berksfile.lock
rm -rf /tmp/cookbooks
berks vendor /tmp/cookbooks
cp metadata.rb /tmp/cookbooks/$cb/
knife cookbook site share $cb Applications

0 comments on commit 1550c8c

Please sign in to comment.