mirror of https://github.com/rapenne-s/bento
add a config option to not build the config locally
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
f85a445532
commit
3e7125d32e
7
bento
7
bento
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
TIMEOUT=20
|
TIMEOUT=20
|
||||||
REMOTE_PORT=22
|
REMOTE_PORT=22
|
||||||
|
NOLOCALBUILD=0
|
||||||
|
|
||||||
# FUNCTION LIBRARIES
|
# FUNCTION LIBRARIES
|
||||||
usage() {
|
usage() {
|
||||||
|
@ -529,7 +530,11 @@ deploy_files() {
|
||||||
|
|
||||||
if [ "$CHANGES" -ne 0 ]
|
if [ "$CHANGES" -ne 0 ]
|
||||||
then
|
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"
|
echo " update required"
|
||||||
# copy files in the chroot
|
# copy files in the chroot
|
||||||
install -d -o root -g sftp_users -m 755 "${CHROOT_DIR}"
|
install -d -o root -g sftp_users -m 755 "${CHROOT_DIR}"
|
||||||
|
|
|
@ -9,3 +9,5 @@ REMOTE_IP=myserver.example
|
||||||
# port to connect to the remote server
|
# port to connect to the remote server
|
||||||
# default is 22
|
# default is 22
|
||||||
#REMOTE_PORT=22
|
#REMOTE_PORT=22
|
||||||
|
# don't build locally
|
||||||
|
#NOLOCALBUILD=1
|
||||||
|
|
Loading…
Reference in New Issue