Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update import statements, add a note if nginx is already installed

  • Loading branch information...
commit 278e0279111663b2efb5f1cecfe4fe6e9aacb0b2 1 parent 1251f7d
@afgane afgane authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 cloudbio/custom/
8 cloudbio/custom/
@@ -4,9 +4,8 @@
import os, contextlib
-from fabric.api import sudo, run, env, cd, put, local
-from fabric.contrib.console import confirm
-from fabric.contrib.files import exists, settings, hide, contains, append, sed
+from fabric.api import sudo, run, cd
+from fabric.contrib.files import exists, settings, hide, contains, sed
from cloudbio.custom.shared import _make_tmp_dir
from cloudbio.cloudman import _configure_cloudman
@@ -31,8 +30,9 @@ def install_nginx(env):
install_dir = os.path.join(env.install_dir, "nginx")
remote_conf_dir = os.path.join(install_dir, "conf")
- # skip install if already present
+ # Skip install if already present
if exists(remote_conf_dir) and contains(os.path.join(remote_conf_dir, "nginx.conf"), "/cloud"):
+ env.logger.debug("Nginx already installed; not installing it again.")
with _make_tmp_dir() as work_dir:
Please sign in to comment.
Something went wrong with that request. Please try again.