We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa9a4d8 commit 495708eCopy full SHA for 495708e
2 files changed
bin/check
@@ -0,0 +1,20 @@
1
+#!/bin/bash
2
+#
3
+# Check that the configuration for deis-controller is valid.
4
5
+
6
+if [[ -f /templates/confd_settings.py ]] ; then
7
+ set -e
8
9
+ # check that "<no value>" isn't in the templated file
10
+ grep -q -v "<no value>" /templates/confd_settings.py
11
12
+ THIS_DIR=$(cd $(dirname $0); pwd) # absolute path
13
+ PARENT_DIR=$(dirname $THIS_DIR)
14
15
+ # check the Django configuration file compatibility
16
+ $PARENT_DIR/manage.py check > /dev/null
17
18
+ # validate the Django models
19
+ $PARENT_DIR/manage.py validate > /dev/null
20
+fi
conf.d/confd_settings.toml
@@ -11,5 +11,5 @@ keys = [
"/deis/registry",
"/deis/domains",
]
-check_cmd = "test -e {{ .src }}"
+check_cmd = "/app/bin/check"
reload_cmd = "/app/bin/reload"
0 commit comments