aboutsummaryrefslogtreecommitdiff
path: root/straper/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'straper/lib/common.sh')
-rwxr-xr-xstraper/lib/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/straper/lib/common.sh b/straper/lib/common.sh
index 32f3581..dce03d8 100755
--- a/straper/lib/common.sh
+++ b/straper/lib/common.sh
@@ -8,7 +8,7 @@ TOOLKIT_DIR="$(cd -- "${COMMON_DIR}/.." && pwd)"
TOOLKIT_NAME="labunix-rebuild"
TOOLKIT_VERSION="0.1.1"
-: "${DB_DIR:=/srv/sanctum-rebuild}"
+: "${DB_DIR:=${SCRIPT_DIR:-/srv/sanctum-rebuild}}"
: "${PUBLIC_DIR:=${DB_DIR}/db/public}"
: "${SECRET_DIR:=${DB_DIR}/db/secret}"
: "${ROLE:=lab}" # lab | hardware | replacement