From 6df2693437ab5460d044f09bb4a7887565fc3376 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Tue, 25 Oct 2011 20:20:02 -0200 Subject: countryblock-dev - force alias update on apply --- config/countryblock-dev/countryblock.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config/countryblock-dev') diff --git a/config/countryblock-dev/countryblock.inc b/config/countryblock-dev/countryblock.inc index b94ed5b9..9dfd2783 100755 --- a/config/countryblock-dev/countryblock.inc +++ b/config/countryblock-dev/countryblock.inc @@ -74,11 +74,13 @@ function sync_package_countryblock() { $ips.=file_get_contents('/usr/local/pkg/countryblock/'.$iso.'.txt'); } } - #create all ip block lists based on gui + #create all ip block lists based on gui and force alias update file_put_contents('/usr/local/pkg/cb.txt',$ips, LOCK_EX); + file_put_contents('/var/db/aliastables/Countryblock.txt',$ips, LOCK_EX); - #write white_list to filesystem + #write white_list to filesystem and force alias update file_put_contents('/usr/local/pkg/cbw.txt',cb_text_area_decode($countryblock_config['whitelist']), LOCK_EX); + file_put_contents('/var/db/aliastables/CountryblockWL.txt',cb_text_area_decode($countryblock_config['whitelist']), LOCK_EX); #edit or assign alias "Countryblock" and "CountryblockWL" $aliases=$config['aliases']['alias']; -- cgit v1.2.3