diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-03 08:13:28 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-03 08:13:28 -0300 |
commit | 49784c55a338cf08d969bf46f785d395e4325e8d (patch) | |
tree | a9525b4fdd0276f11ea2eb01a957cebdc4e1fd5d /build.sh | |
parent | f238a83f3f559d31c56caafec3923d2f722ec307 (diff) | |
download | pfsense-49784c55a338cf08d969bf46f785d395e4325e8d.zip pfsense-49784c55a338cf08d969bf46f785d395e4325e8d.tar.gz |
Check rsync variables required to update package repos
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -288,7 +288,19 @@ if [ "${BUILDACTION}" != "images" ]; then fi if [ -n "${SNAPSHOTS}" -a -z "${DO_NOT_UPLOAD}" ]; then - for _var in RSYNCIP RSYNCUSER RSYNCPATH RSYNCLOGS; do + _required=" \ + RSYNCIP \ + RSYNCUSER \ + RSYNCPATH \ + RSYNCLOGS \ + PKG_RSYNC_HOSTNAME \ + PKG_RSYNC_USERNAME \ + PKG_RSYNC_SSH_PORT \ + PKG_RSYNC_DESTDIR \ + PKG_REPO_SERVER \ + PKG_REPO_CONF_BRANCH" + + for _var in "${_required}"; do eval "_value=\${$_var}" if [ -z "${_value}" ]; then echo ">>> ERROR: ${_var} is not defined" |