aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/10-core2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/10-core b/lib/10-core
index bd4e80a..60d1101 100644
--- a/lib/10-core
+++ b/lib/10-core
@@ -351,7 +351,7 @@ _boxconf_run(){
"${BOXCONF_SITE_SCRIPT_DIR}/hostname/${BOXCONF_HOSTNAME}"
# Reboot the target host if requested.
- if [ "${BOXCONF_NEED_REBOOT:-}" = true ]; then
+ if [ "${BOXCONF_NEED_REBOOT:-}" = true ] && [ "${boxconf_reboot:-}" != false ]; then
log '$BOXCONF_NEED_REBOOT was set. Rebooting host...'
reboot
fi