diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-10 18:10:11 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-10 18:17:43 +0200 |
commit | 931dddda66f58b710f6a9734506e9b2cc50c9ebe (patch) | |
tree | fede086d22eed0c1cce2d185afe0a02b392ca1f4 /modules/role/templates/caldance | |
parent | 02a6bcd123c6ace5926eac019f7964d0cf23de8a (diff) | |
download | Puppet-931dddda66f58b710f6a9734506e9b2cc50c9ebe.tar.gz Puppet-931dddda66f58b710f6a9734506e9b2cc50c9ebe.tar.zst Puppet-931dddda66f58b710f6a9734506e9b2cc50c9ebe.zip |
Add wrapper to caldance app
Diffstat (limited to 'modules/role/templates/caldance')
-rw-r--r-- | modules/role/templates/caldance/manage.sh.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/role/templates/caldance/manage.sh.erb b/modules/role/templates/caldance/manage.sh.erb new file mode 100644 index 0000000..ab08618 --- /dev/null +++ b/modules/role/templates/caldance/manage.sh.erb | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | set -a | ||
4 | <% @environment.each do |env, val| %> | ||
5 | <%= env %>="<%= val %>" | ||
6 | <% end %> | ||
7 | source <%= @home %>/caldance_env | ||
8 | set +a | ||
9 | |||
10 | <%= @python_path %> -O <%= @caldance_app %>/manage.py "$@" | ||