From: Ismaƫl Bouya Date: Mon, 10 Jun 2019 16:34:53 +0000 (+0200) Subject: Stop overwriting manage.py X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=da0f686b366140aab3d01c95f37eb655f07f81ef;p=perso%2FImmae%2FProjets%2FPuppet.git Stop overwriting manage.py --- 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)