Skip to content

Commit

Permalink
Merge pull request openshift#80 from hardys/exit_on_error
Browse files Browse the repository at this point in the history
Add set -e to all the entrypoint scripts
  • Loading branch information
dtantsur committed Jul 26, 2019
2 parents 85abc5a + 7e7eb9a commit 5c2f1f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rundnsmasq.sh
@@ -1,5 +1,7 @@
#!/usr/bin/bash

set -e

PROVISIONING_INTERFACE=${PROVISIONING_INTERFACE:-"provisioning"}

HTTP_PORT=${HTTP_PORT:-"80"}
Expand Down
2 changes: 2 additions & 0 deletions runhttpd.sh
@@ -1,5 +1,7 @@
#!/usr/bin/bash

set -e

PROVISIONING_INTERFACE=${PROVISIONING_INTERFACE:-"provisioning"}
HTTP_PORT=${HTTP_PORT:-"80"}
HTTP_IP=$(ip -4 address show dev "$PROVISIONING_INTERFACE" | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -n 1)
Expand Down
2 changes: 2 additions & 0 deletions runironic-api.sh
@@ -1,5 +1,7 @@
#!/usr/bin/bash

set -e

. /bin/configure-ironic.sh

# Allow access to Ironic
Expand Down
2 changes: 2 additions & 0 deletions runironic-conductor.sh
@@ -1,5 +1,7 @@
#!/usr/bin/bash

set -e

. /bin/configure-ironic.sh

# Allow access to mDNS
Expand Down
3 changes: 3 additions & 0 deletions runmariadb.sh
@@ -1,4 +1,7 @@
#!/usr/bin/bash

set -e

PATH=$PATH:/usr/sbin/
DATADIR="/var/lib/mysql"
MARIADB_PASSWORD=${MARIADB_PASSWORD:-"change_me"}
Expand Down

0 comments on commit 5c2f1f8

Please sign in to comment.