From 64c8f55cdbf46a71154ddba05824bdfc4be7b758 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 17 Dec 2017 15:36:55 +0100 Subject: [PATCH] pkg: tweak previous, need this on post-deinstall too PR: https://github.com/opnsense/core/commit/a1c114c670 --- Mk/plugins.mk | 4 ++++ Templates/configure | 1 + Templates/models | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Templates/configure diff --git a/Mk/plugins.mk b/Mk/plugins.mk index d925861ac..6cbc59210 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -132,6 +132,10 @@ scripts-auto: sed "s:%%ARG%%:$${FILE#./}:g" >> \ ${DESTDIR}/+POST_INSTALL; \ done; \ + for SCRIPT in +POST_INSTALL +POST_DEINSTALL; do \ + cat ${TEMPLATESDIR}/configure >> \ + ${DESTDIR}/$${SCRIPT}; \ + done; \ fi @if [ -d ${.CURDIR}/src/opnsense/service/templates ]; then \ for FILE in $$(cd ${.CURDIR}/src/opnsense/service/templates && \ diff --git a/Templates/configure b/Templates/configure new file mode 100644 index 000000000..956bf71a0 --- /dev/null +++ b/Templates/configure @@ -0,0 +1 @@ +/usr/local/etc/rc.configure_plugins diff --git a/Templates/models b/Templates/models index bc7670b52..4a2e2de4d 100644 --- a/Templates/models +++ b/Templates/models @@ -1,2 +1 @@ /usr/local/opnsense/mvc/script/run_migrations.php %%ARG%% -/usr/local/etc/rc.configure_plugins