mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
Framework: more often than not, plugins are not installed
So in order to bootstrap a plugin during an upgrade we allow the upgrade without the package in place. (cherry picked from commit06cbde40e2) (cherry picked from commit08a1145670)
This commit is contained in:
parent
3bdcaf2651
commit
606da11cae
1 changed files with 3 additions and 5 deletions
|
|
@ -212,14 +212,12 @@ package: check
|
|||
-p ${WRKSRC}/plist -o ${PKGDIR}
|
||||
|
||||
upgrade-check: check
|
||||
@if ! ${PKG} info ${PLUGIN_PKGNAME} > /dev/null; then \
|
||||
echo ">>> Cannot find package. Please run 'pkg install ${PLUGIN_PKGNAME}'" >&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
@rm -rf ${PKGDIR}
|
||||
|
||||
upgrade: upgrade-check package
|
||||
@${PKG} delete -fy ${PLUGIN_PKGNAME}
|
||||
@if ${PKG} info ${PLUGIN_PKGNAME} > /dev/null; then \
|
||||
${PKG} delete -fy ${PLUGIN_PKGNAME}; \
|
||||
fi
|
||||
@${PKG} add ${PKGDIR}/*.txz
|
||||
|
||||
mount: check
|
||||
|
|
|
|||
Loading…
Reference in a new issue