Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix user/group options in run script

  • Loading branch information...
commit 10a33daf4dbdec000cde78c0117420cebec2405f 1 parent 725137f
Joshua Timberman jtimberman authored
72 metadata.json
View
@@ -1,40 +1,40 @@
{
- "providing": {
- },
- "attributes": {
- },
- "replacing": {
- },
- "dependencies": {
- "runit": [
+ "name": "git",
+ "description": "Installs git and/or sets up a Git server daemon",
+ "long_description": "= DESCRIPTION:\n\nInstalls git.\n\n= REQUIREMENTS:\n\n== Cookbooks:\n\nOpscode Cookbooks (http://github.com/opscode/cookbooks/tree/master)\n\n* runit\n\n= USAGE:\n\nThis cookbook primarily installs git core packages. It can also be used to serve git repositories.\n\n include_recipe \"git::server\"\n\nThis creates the directory /srv/git and starts a git daemon, exporting all repositories found. Repositories need to be added manually, but will be available once they are created.\n\n= LICENSE and AUTHOR:\n \nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: 2009, Opscode, Inc\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "ubuntu": [
- ]
- },
- "groupings": {
- },
- "recommendations": {
- },
- "platforms": {
- "debian": [
+ ],
+ "debian": [
- ],
- "ubuntu": [
+ ]
+ },
+ "dependencies": {
+ "runit": [
- ]
- },
- "license": "Apache 2.0",
- "version": "0.8.0",
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "recipes": {
- "git::server": "Sets up a runit_service for git daemon",
- "git": "Installs git"
- },
- "maintainer_email": "cookbooks@opscode.com",
- "name": "git",
- "conflicting": {
- },
- "description": "Installs git and/or sets up a Git server daemon",
- "long_description": "= DESCRIPTION:\n\nInstalls git.\n\n= REQUIREMENTS:\n\n== Cookbooks:\n\nOpscode Cookbooks (http://github.com/opscode/cookbooks/tree/master)\n\n* runit\n\n= USAGE:\n\nThis cookbook primarily installs git core packages. It can also be used to serve git repositories.\n\n include_recipe \"git::server\"\n\nThis creates the directory /srv/git and starts a git daemon, exporting all repositories found. Repositories need to be added manually, but will be available once they are created.\n\n= LICENSE and AUTHOR:\n \nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: 2009, Opscode, Inc\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."
- }
+ ]
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "git": "Installs git",
+ "git::server": "Sets up a runit_service for git daemon"
+ },
+ "version": "0.8.1"
+}
2  metadata.rb
View
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs git and/or sets up a Git server daemon"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.8.0"
+version "0.8.1"
recipe "git", "Installs git"
recipe "git::server", "Sets up a runit_service for git daemon"
2  templates/default/sv-git-daemon-run.erb
View
@@ -1,3 +1,3 @@
#!/bin/sh
exec 2>&1
-exec /usr/bin/git daemon --export-all --user nobody --group daemon --base-path=/srv/git /srv/git
+exec /usr/bin/git daemon --export-all --user=nobody --group=daemon --base-path=/srv/git /srv/git
Please sign in to comment.
Something went wrong with that request. Please try again.