OPNsense Forum

English Forums => Development and Code Review => Topic started by: juliocbc on October 11, 2018, 12:38:08 am

Title: Custom pacakge - Web UI menus doesn't show [SOLVED]
Post by: juliocbc on October 11, 2018, 12:38:08 am
Hello,

I've have some custom packages that don't show on Menu (Web UI) immediatelly after installation. I've noted if a reboot is done these menus loads OK. I was using those packages on 16.x versions, is there something that needed to be done on 18.7 to load the menus in Web UI?

I've noted that if I remove the cache file: /tmp/opnsense_menu_cache.xml solves the problem, but I want to do it in a "clean way"
Title: Re: Custom pacakge - Web UI menus doesn't show
Post by: fabian on October 11, 2018, 07:00:50 am
I've noted that if I remove the cache file: /tmp/opnsense_menu_cache.xml solves the problem, but I want to do it in a "clean way"

That's the way how to do it. In case of an update / installation this is done automatically.
Title: Re: Custom pacakge - Web UI menus doesn't show
Post by: juliocbc on October 11, 2018, 12:48:12 pm
But it is an installation, right? I'm installing this packages using
Code: [Select]
pkg add , is there some another way to install and reload this menu cache?

Title: Re: Custom pacakge - Web UI menus doesn't show
Post by: franco on October 17, 2018, 10:48:43 pm
Run this:

# /usr/local/etc/rc.configure_plugins

Your old plugins have embedded +POST_INSTALL and +PRE_DEINSTALL scripts and when you don't rebuild them on 18.7 they do not know about the new cool scripts to call! :)


Cheers,
Franco
Title: Re: Custom pacakge - Web UI menus doesn't show
Post by: juliocbc on October 18, 2018, 07:55:11 pm
Thanks Franco!!

I'll update my cool scripts!!  ;D