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:03 -0300 |
commit | 58394710af44749e5eb26333c3879540958a56b2 (patch) | |
tree | fbbbc2ebd8d164341c5f95d8ca7a459562c8d7d2 | |
parent | 49409fd857e4d4a61b97d74ab5ac8c62aa904c3e (diff) | |
download | pfsense-58394710af44749e5eb26333c3879540958a56b2.zip pfsense-58394710af44749e5eb26333c3879540958a56b2.tar.gz |
Add a new option to rsync snaps and pkg
-rwxr-xr-x | build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -30,6 +30,7 @@ usage() { echo " --setup - Install required repo and ports builder require to work" echo " --update-sources - Refetch FreeBSD sources" echo " --rsync-repos - rsync pkg repos" + 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" @@ -84,6 +85,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" ;; @@ -229,6 +234,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..." |