You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
852 B
33 lines
852 B
#!@l_prefix@/bin/openpkg rc |
|
## |
|
## rc.squidguard -- Run-Commands |
|
## |
|
|
|
%config |
|
squidguard_enable="$openpkg_rc_def" |
|
squidguard_update="daily" |
|
|
|
%quarterly -u @l_rusr@ |
|
rcService squidguard enable yes || exit 0 |
|
if [ ".$squidguard_update" = .quarterly ]; then |
|
@l_prefix@/bin/squidguard-update || exit $? |
|
fi |
|
|
|
%hourly -u @l_rusr@ |
|
rcService squidguard enable yes || exit 0 |
|
if [ ".$squidguard_update" = .hourly ]; then |
|
@l_prefix@/bin/squidguard-update || exit $? |
|
fi |
|
|
|
%daily -u @l_rusr@ |
|
rcService squidguard enable yes || exit 0 |
|
if [ ".$squidguard_update" = .daily ]; then |
|
@l_prefix@/bin/squidguard-update || exit $? |
|
fi |
|
|
|
%weekly -u @l_rusr@ |
|
rcService squidguard enable yes || exit 0 |
|
if [ ".$squidguard_update" = .weekly ]; then |
|
@l_prefix@/bin/squidguard-update || exit $? |
|
fi |
|
|
|
|