Permalink
Browse files

fix issue with missing directory in Ubuntu 11.04

  • Loading branch information...
1 parent bb2d3a3 commit 8cac5a7ed054cc8063e04e6b9aedca1814907b06 @bretth committed Jul 31, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 woven/webservers.py
View
@@ -197,7 +197,9 @@ def deploy_webconf():
deployed += _deploy_webconf('/etc/nginx/sites-available','nginx-template.txt')
elif 'gunicorn' in get_packages():
deployed += _deploy_webconf('/etc/nginx/sites-available','nginx-gunicorn-template.txt')
-
+
+ if not exists('/var/www/nginx-default'):
+ sudo('mkdir /var/www/nginx-default')
upload_template('woven/maintenance.html','/var/www/nginx-default/maintenance.html',use_sudo=True)
sudo('chmod ugo+r /var/www/nginx-default/maintenance.html')
else:

0 comments on commit 8cac5a7

Please sign in to comment.