add a config option to not build the config locally

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian Brandes 2023-05-02 21:36:57 +02:00
parent f85a445532
commit 3e7125d32e
No known key found for this signature in database
GPG Key ID: 074048E893713170
2 changed files with 8 additions and 1 deletions

7
bento
View File

@ -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}"

View File

@ -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