safe-search: check for changed IP addresses weekly 15372/head
authorGregory L. Dietsche <gregory.dietsche@cuw.edu>
Wed, 10 Mar 2021 03:34:24 +0000 (21:34 -0600)
committerGregory L. Dietsche <gregory.dietsche@cuw.edu>
Thu, 8 Apr 2021 20:53:19 +0000 (15:53 -0500)
The current default of hourly is too fast. Some services such as
DuckDuckGo return IPs from a pool based on the user's location instead
of a fixed IP address. This change prevents unnecessary writes to the
flash memory by only updating once per week.

Signed-off-by: Gregory L. Dietsche <gregory.dietsche@cuw.edu>
(cherry picked from commit 7164ccf1553a990d8823bc545d970334fa0cd32e)

net/safe-search/Makefile

index 193d629dca9541eae138340436c61813fe4f5115..9c0126287a1652332f468c0ae21aab842c5634e4 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=safe-search
 PKG_VERSION:=2.0.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_LICENSE:=MIT
 PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
 
@@ -54,7 +54,7 @@ endef
 define Package/safe-search/postinst
 #!/bin/sh
 if [ -z "$${IPKG_INSTROOT}" ]; then
-  echo "0 * * * * /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root
+  echo "1 1 * * 1 /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root
   /etc/init.d/cron restart
 fi
 exit 0