SquidGuard apply changes

  • Hi, i'm doing a script to read acls and automatically change the config.xml file but i can't find a way to automatically apply this changes without pressing the "apply" button in the web interface. Anyone knows how could be regenerate the squidGuard.conf file from the config.xml from a script?

    Thank you!

  • Call sg_check_config_data(&$input_errors)

  • I cant get it working. I have created a php file with the call and it executes without errors but it doesn't update /usr/local/etc/squidGuard/squidGuard.conf

    It's 2.0-release with the squid 2.7.9_4.2 package.

    Thank you very much.

  • Well, as workaround i'm using the /etc/rc.packages script to reload config files.

    Best regards.

Log in to reply