safe-search: fix typos in package scripting
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
parent
ac3beceb96
commit
8d09fc0cfb
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=safe-search
|
PKG_NAME:=safe-search
|
||||||
PKG_VERSION:=2.0.0
|
PKG_VERSION:=2.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ endef
|
||||||
|
|
||||||
define Package/safe-search/postinst
|
define Package/safe-search/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -z "$${IPGK_INSTROOT}" ]; then
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||||
echo "0 * * * * /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root
|
echo "0 * * * * /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
fi
|
fi
|
||||||
|
@ -62,7 +62,7 @@ endef
|
||||||
|
|
||||||
define Package/safe-search/prerm
|
define Package/safe-search/prerm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -z "$${IPGK_INSTROOT}" ]; then
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||||
uci del_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
uci del_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
||||||
uci commit dhcp
|
uci commit dhcp
|
||||||
/etc/init.d/dnsmasq reload
|
/etc/init.d/dnsmasq reload
|
||||||
|
@ -73,7 +73,7 @@ endef
|
||||||
|
|
||||||
define Package/safe-search/postrm
|
define Package/safe-search/postrm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -z "$${IPGK_INSTROOT}" ]; then
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||||
rm -rf /etc/safe-search/enabled
|
rm -rf /etc/safe-search/enabled
|
||||||
rmdir /etc/safe-search/available
|
rmdir /etc/safe-search/available
|
||||||
rmdir /etc/safe-search/
|
rmdir /etc/safe-search/
|
||||||
|
|
Loading…
Reference in a new issue