How to trigger squidGuard package to export squidguard config?
-
Hi,
I want to have the SquidGuard package export its settings to the squidguard config (i mean, write the /usr/local/etc/squidGuard/squidGuard.conf and update the destinations in the db).
On the webgui, I have to press the 'Apply' button on the 'General Setting' tab for this.
How can I trigger this outside of the webgui? Shall I call the sg_reconfigure() function in the squidguard_configurator.inc? Or are there other, more recommended ways?
Thanks,
Jean-Marie.
-
PHP
require_once('squidguard.inc'); sg_reconfigure();