move error out vars bevor error code
This commit is contained in:
parent
1e2c27ec19
commit
4c50f9701b
@ -15,6 +15,12 @@ MSTEMPDIR="/usr/local/src/mystic"
|
|||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
SCRIPT_VER="v1"
|
SCRIPT_VER="v1"
|
||||||
|
|
||||||
|
GROUP=$(getent group mystic)
|
||||||
|
USER=$(getent shadow mystic)
|
||||||
|
|
||||||
|
FAIL2BAN_GROUP=$(getent group fail2ban)
|
||||||
|
IPBAN_GROUP=$(getent group ipban)
|
||||||
|
|
||||||
hostname="$(hostname)"
|
hostname="$(hostname)"
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o errtrace
|
set -o errtrace
|
||||||
@ -68,12 +74,6 @@ ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|||||||
DIST=$(lsb_release -i -s)
|
DIST=$(lsb_release -i -s)
|
||||||
CODENAME=$(lsb_release -c -s)
|
CODENAME=$(lsb_release -c -s)
|
||||||
|
|
||||||
GROUP=$(getent group mystic)
|
|
||||||
USER=$(getent shadow mystic)
|
|
||||||
|
|
||||||
FAIL2BAN_GROUP=$(getent group fail2ban)
|
|
||||||
IPBAN_GROUP=$(getent group ipban)
|
|
||||||
|
|
||||||
LIBDIR=/usr/lib/${ARCH}
|
LIBDIR=/usr/lib/${ARCH}
|
||||||
MYSTIC_VER="112a48"
|
MYSTIC_VER="112a48"
|
||||||
MRC_VER="129a"
|
MRC_VER="129a"
|
||||||
|
Loading…
Reference in New Issue
Block a user