diff options
author | Renato Botelho <renato@netgate.com> | 2017-08-21 10:27:03 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-08-21 10:27:40 -0300 |
commit | 1c46b00d4f9e38a7ac975eb97ba28045ed7d19ad (patch) | |
tree | b984e0f452e34948ea01c912af95d3fc11f244f9 /build.sh | |
parent | 60138edbd4d7740c2d140e0d8fb4c5ee945db9e5 (diff) | |
download | pfsense-1c46b00d4f9e38a7ac975eb97ba28045ed7d19ad.zip pfsense-1c46b00d4f9e38a7ac975eb97ba28045ed7d19ad.tar.gz |
Add a new option to rsync snaps and pkg
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -64,6 +64,7 @@ usage() { echo " --update-sources - Refetch FreeBSD sources" echo " --rsync-repos - rsync pkg repos" echo " --print-flags - Show current builder configuration" + echo " --rsync-snapshots - rsync snapshots images and pkg repos" echo " --clean-builder - clean all builder used data/resources" echo " --build-kernels - build all configured kernels" echo " --build-kernel argument - build specified kernel. Example --build-kernel KERNEL_NAME" @@ -129,6 +130,10 @@ while test "$1" != ""; do BUILDACTION="rsync_repos" export DO_NOT_SIGN_PKG_REPO=YES ;; + --rsync-snapshots) + BUILDACTION="rsync_snapshots" + export DO_NOT_SIGN_PKG_REPO=YES + ;; --build-kernels) BUILDACTION="buildkernels" ;; @@ -281,6 +286,10 @@ case $BUILDACTION in unset SKIP_FINAL_RSYNC pkg_repo_rsync "${CORE_PKG_PATH}" ;; + rsync_snapshots) + unset SKIP_FINAL_RSYNC + snapshots_scp_files + ;; update_pkg_repo) if [ -z "${DO_NOT_UPLOAD}" -a ! -f /usr/local/bin/rsync ]; then echo "ERROR: rsync is not installed, aborting..." |