From da0f686b366140aab3d01c95f37eb655f07f81ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 10 Jun 2019 18:34:53 +0200 Subject: Stop overwriting manage.py --- modules/role/manifests/caldance.pp | 10 ---------- modules/role/templates/caldance/manage.py.erb | 9 --------- 2 files changed, 19 deletions(-) delete mode 100644 modules/role/templates/caldance/manage.py.erb diff --git a/modules/role/manifests/caldance.pp b/modules/role/manifests/caldance.pp index d4c8207..1ec51bf 100644 --- a/modules/role/manifests/caldance.pp +++ b/modules/role/manifests/caldance.pp @@ -118,16 +118,6 @@ class role::caldance ( $uwsgi_path = "${home}/virtualenv/bin/uwsgi" $python_path = "${home}/virtualenv/bin/python" - file { "$caldance_app/manage.py": - owner => $user, - group => $group, - mode => "0644", - content => template("role/caldance/manage.py.erb"), - require => [ - User["$user:"], - Archive[ "${home}/caldance_${caldance_version}.tar.gz"], - ], - } file { "$caldance_app/manage": owner => $user, group => $group, diff --git a/modules/role/templates/caldance/manage.py.erb b/modules/role/templates/caldance/manage.py.erb deleted file mode 100644 index dc06eab..0000000 --- a/modules/role/templates/caldance/manage.py.erb +++ /dev/null @@ -1,9 +0,0 @@ -#!<%= @python_path %> -O -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings") - - from django.core.management import execute_from_command_line - execute_from_command_line(sys.argv) -- cgit v1.2.3