New: Added OPSI_REPOS_OPSIMANAGER_INSTALL to opsi-builder.cfg. If set, the created opsi-package will be automatically installed to the depot

This commit is contained in:
2012-02-04 10:55:24 +01:00
parent 78d96bffad
commit d279f01adb
2 changed files with 15 additions and 6 deletions

View File

@@ -271,6 +271,11 @@ builder_publish() {
builder_check_error "Can't upload file ${dst}-src.zip --> ${dst}-src.zip"
fi
if [ "${OPSI_REPOS_OPSIMANAGER_INSTALL}" = "true" ] ; then
opsi-package-manager -i -v ${dst}.opsi
builder_check_error "Can't install ${dst}.opsi"
fi
if [ "${OPSI_REPOS_UPLOAD_OPSI_ZSYNC}" = "true" ] ; then
md5sum "${dst}.opsi" | sed 's/ .*//' > ${dst}.opsi.md5
builder_check_error "Can't create md5 file"