Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Creates user if it doesn't exist
  • Loading branch information
vitorbaptista committed Jan 22, 2013
1 parent 167d521 commit fd2984f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cookbooks/ckan/recipes/default.rb
Expand Up @@ -9,6 +9,12 @@
ENV['PATH'] = "#{ENV['VIRTUAL_ENV']}/bin:#{ENV['PATH']}" ENV['PATH'] = "#{ENV['VIRTUAL_ENV']}/bin:#{ENV['PATH']}"
SOURCE_DIR = "#{ENV['VIRTUAL_ENV']}/src/ckan" SOURCE_DIR = "#{ENV['VIRTUAL_ENV']}/src/ckan"


# Create user
user USER do
home HOME
supports :manage_home => true
end

# Install Python # Install Python
python_virtualenv ENV['VIRTUAL_ENV'] do python_virtualenv ENV['VIRTUAL_ENV'] do
interpreter "python2.7" interpreter "python2.7"
Expand Down
2 changes: 1 addition & 1 deletion solo.json
Expand Up @@ -4,7 +4,7 @@
"recipe[ckan]", "recipe[ckan]",
"recipe[ckan::ckanext]" "recipe[ckan::ckanext]"
], ],
"user": "vagrant", "user": "ckan",
"postgresql": { "postgresql": {
"version": "9.1", "version": "9.1",
"ssl": false "ssl": false
Expand Down

0 comments on commit fd2984f

Please sign in to comment.