mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-03 13:59:06 -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.
This commit is contained in:
parent
0bdb38bc36
commit
06cbde40e2
1 changed files with 4 additions and 6 deletions
|
|
@ -213,15 +213,13 @@ package: check
|
|||
@${PKG} create -v -m ${WRKSRC} -r ${WRKSRC} \
|
||||
-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
|
||||
upgrade-check:
|
||||
@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