edno / kleis

Simplified SquidGuard web frontend (users & filters management)
MIT License
4 stars 2 forks source link

SquidGuard update command #81

Closed edno closed 5 years ago

edno commented 5 years ago

Create new CLI command that trigger SquidGuard update at once :

cd /var/www/kleis 
php artisan export:accounts 
php artisan export:categories
php artisan export:groups
php artisan export:whitelist 
cp /var/www/kleis/storage/app/export/accounts/accounts.txt /etc/squid3/passwords 
cp /var/www/kleis/storage/app/export/categories/*.txt /var/lib/squidguard/db/
cp /var/www/kleis/storage/app/export/proxylists/*.txt /var/lib/squidguard/db/
squidGuard -C all
/usr/sbin/service squid3 restart
edno commented 5 years ago

Cancelled for #82