File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ keys = [
1111 " /deis/registry" ,
1212 " /deis/domains" ,
1313]
14- check_cmd = " test -e {{ .src }} "
14+ check_cmd = " /app/bin/check "
1515reload_cmd = " /app/bin/reload"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Check that the configuration for deis-database is valid.
4+ #
5+
6+ set -e
7+
8+ # check that "<no value>" isn't in the templated files
9+ if [[ -f /etc/postgresql/9.3/main/postgresql.conf ]] ; then
10+ grep -q -v " <no value>" /etc/postgresql/9.3/main/postgresql.conf
11+ fi
12+ if [[ -f /etc/postgresql/9.3/main/pg_hba.conf ]] ; then
13+ grep -q -v " <no value>" /etc/postgresql/9.3/main/pg_hba.conf
14+ fi
15+ if [[ -f /usr/local/bin/reload ]] ; then
16+ grep -q -v " <no value>" /usr/local/bin/reload
17+ fi
Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ gid = 104
66mode = " 0640"
77keys = [
88 " /deis/database" ,
9- ]
9+ ]
10+ check_cmd = " /app/bin/check"
11+ reload_cmd = " /usr/local/bin/reload"
Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ gid = 104
66mode = " 0644"
77keys = [
88 " /deis/database" ,
9- ]
9+ ]
10+ check_cmd = " /app/bin/check"
11+ reload_cmd = " /usr/local/bin/reload"
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ mode = "0755"
77keys = [
88 " /deis/database" ,
99]
10- check_cmd = " netstat -lnt | awk '$6 == \" LISTEN \" && $4 ~ \" .5432 \" ' "
11- reload_cmd = " /usr/local/bin/reload"
10+ check_cmd = " /app/bin/check "
11+ reload_cmd = " /usr/local/bin/reload"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Check that the configuration for deis-registry is valid.
4+ #
5+
6+ if [[ -f /docker-registry/config/config.yml ]] ; then
7+ set -e
8+
9+ # check that "<no value>" isn't in the templated file
10+ grep -q -v " <no value>" /docker-registry/config/config.yml
11+ fi
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Send SIGHUP to gunicorn in general, since we didn't launch it with `--pid`
4+ pkill -HUP -u registry gunicorn
Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ mode = "0644"
77keys = [
88 " /deis/registry" ,
99]
10+ check_cmd = " /app/bin/check"
11+ reload_cmd = " /app/bin/reload"
You can’t perform that action at this time.
0 commit comments