1. Tuk Bredsdorff
  2. mezzanine

Commits

Stephen McDonald  committed 537d5dc

Allow fab remove to run when db/user don't exist.

  • Participants
  • Parent commits 107afa7
  • Branches default

Comments (0)

Files changed (1)

File mezzanine/project_template/fabfile.py

View file
         remote_path = template["remote_path"]
         if exists(remote_path):
             sudo("rm %s" % remote_path)
-    psql("DROP DATABASE %s;" % env.proj_name)
-    psql("DROP USER %s;" % env.proj_name)
+    psql("DROP DATABASE IF EXISTS %s;" % env.proj_name)
+    psql("DROP USER IF EXISTS %s;" % env.proj_name)
 
 
 ##############