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.
19 lines
430 B
19 lines
430 B
#!@l_prefix@/bin/openpkg rc |
|
## |
|
## rc.geoip2 -- Run-Commands |
|
## |
|
|
|
%config |
|
geoip2_enable="$openpkg_rc_def" |
|
|
|
%status -u @l_susr@ -o |
|
geoip2_usable="no" |
|
geoip2_active="no" |
|
echo "geoip2_enable=\"$geoip2_enable\"" |
|
echo "geoip2_usable=\"$geoip2_usable\"" |
|
echo "geoip2_active=\"$geoip2_active\"" |
|
|
|
%daily -u @l_rusr@ |
|
rcService geoip2 enable yes || exit 0 |
|
@l_prefix@/bin/geoipupdate; [ $? -ge 2 ] && exit $? |
|
|
|
|