forked from logicalclocks/ndb-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'mysql' user is not a system user by default
- Loading branch information
Jim Dowling
committed
Sep 14, 2016
1 parent
f93bfe3
commit 1550c8c
Showing
2 changed files
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|