Permalink
Browse files

Creates user if it doesn't exist

  • Loading branch information...
vitorbaptista committed Jan 22, 2013
1 parent 167d521 commit fd2984f3d70f5c698b41c656a92472010e6d8100
Showing with 7 additions and 1 deletion.
  1. +6 −0 cookbooks/ckan/recipes/default.rb
  2. +1 −1 solo.json
@@ -9,6 +9,12 @@
ENV['PATH'] = "#{ENV['VIRTUAL_ENV']}/bin:#{ENV['PATH']}"
SOURCE_DIR = "#{ENV['VIRTUAL_ENV']}/src/ckan"
+# Create user
+user USER do
+ home HOME
+ supports :manage_home => true
+end
+
# Install Python
python_virtualenv ENV['VIRTUAL_ENV'] do
interpreter "python2.7"
View
@@ -4,7 +4,7 @@
"recipe[ckan]",
"recipe[ckan::ckanext]"
],
- "user": "vagrant",
+ "user": "ckan",
"postgresql": {
"version": "9.1",
"ssl": false

0 comments on commit fd2984f

Please sign in to comment.