From 3e7125d32e6f09c855b19c65bce666896a01599a Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 2 May 2023 21:36:57 +0200 Subject: [PATCH] add a config option to not build the config locally Signed-off-by: Florian Brandes --- bento | 7 ++++++- config.sh.sample | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bento b/bento index 612e5b3..6b48a0e 100755 --- a/bento +++ b/bento @@ -2,6 +2,7 @@ TIMEOUT=20 REMOTE_PORT=22 +NOLOCALBUILD=0 # FUNCTION LIBRARIES usage() { @@ -529,7 +530,11 @@ deploy_files() { if [ "$CHANGES" -ne 0 ] then - build_config "${STAGING_DIR}/${dest}/config/" "build" "" "${dest}" + if [ $NOLOCALBUILD -eq 1 ]; then + build_config "${STAGING_DIR}/${dest}/config/" "dry-build" "" "${dest}" + else + build_config "${STAGING_DIR}/${dest}/config/" "build" "" "${dest}" + fi echo " update required" # copy files in the chroot install -d -o root -g sftp_users -m 755 "${CHROOT_DIR}" diff --git a/config.sh.sample b/config.sh.sample index 6c487cf..647f61e 100644 --- a/config.sh.sample +++ b/config.sh.sample @@ -9,3 +9,5 @@ REMOTE_IP=myserver.example # port to connect to the remote server # default is 22 #REMOTE_PORT=22 +# don't build locally +#NOLOCALBUILD=1