Skip to content

Commit 643a326

Browse files
authored
Merge pull request #303 from mekanix/feature/fail
Fail script if error occurs
2 parents 0bf6dba + 3627956 commit 643a326

22 files changed

+42
-1
lines changed

scripts/apply-proxy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22

3+
set -e
34

45
BACKEND=$(reggae get-config BACKEND)
56
PKG_PROXY=$(reggae get-config PKG_PROXY)

scripts/backend-init.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/base-init.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/bhyve-init.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
TEMPFILE=$(mktemp)
46

57
reggae init ${@}

scripts/cbsd-init.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/chef-provision.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
SERVICE="${1}"
46
TYPE="${2}"
57

scripts/default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.3.3
1+
VERSION=0.3.4
22

33
BACKEND=${BACKEND:-"base"}
44
CBSD_WORKDIR=${CBSD_WORKDIR:-"/usr/cbsd"}

scripts/host-init.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/import.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
IMAGE_PATH="${1}"
46

57
if [ -z "${IMAGE_PATH}" ]; then

scripts/init.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/jexec.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
help() {
46
echo "Usage: ${0} [options] <jail name> <command>"
57
echo ""

scripts/pkg-upgrade.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/puppet-provision.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
SERVICE="${1}"
46
TYPE="${2}"
57

scripts/rmjail.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
NAME="${1}"
46
if [ -z "${NAME}" ]; then
57
echo "Usage: $0 <jail>" >&2

scripts/salt-provision.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
CBSD_WORKDIR=$(sysrc -s cbsdd -n cbsd_workdir)
46
SERVICE="${1}"
57
TYPE="${2}"

scripts/scp.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/service.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
SOCKET_DIR=${1}
46
PID_FILE=${2}
57

scripts/shell-provision.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
BACKEND=$(reggae get-config BACKEND)
46
SERVICE="${1}"
57
TYPE="${2}"

scripts/ssh-ping.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
SCRIPT_DIR=$(dirname $0)
46
PROJECT_ROOT=$(readlink -f ${SCRIPT_DIR}/..)
57
SERVICE="${1}"

scripts/ssh.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
SCRIPT_DIR=$(dirname $0)
46
PROJECT_ROOT=$(readlink -f ${SCRIPT_DIR}/..)
57
USER="${1}"

scripts/update-base.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

scripts/update-profiles.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
if [ -f "/usr/local/etc/reggae.conf" ]; then
46
. "/usr/local/etc/reggae.conf"
57
fi

0 commit comments

Comments
 (0)