squid: fix missing /etc/squid.conf message from init
authorRoman I Khimov <khimov@altell.ru>
Wed, 28 Jul 2010 09:09:12 +0000 (13:09 +0400)
committerRoman I Khimov <khimov@altell.ru>
Thu, 29 Jul 2010 17:24:59 +0000 (21:24 +0400)
Like this:

/etc/init.d/squid: line 18: /etc/squid.conf: No such file or directory

We actually have squid config in /etc/squid/squid.conf

Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/squid/squid.inc
recipes/squid/squid/squid.init

index eb567c8..3355c28 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more"
 LICENSE = "GPLv2"
-INC_PR = "r8"
+INC_PR = "r9"
 DEPENDS = "openssl openssl-native openldap"
 
 SQ_MAJ = "${@bb.data.getVar('PV',d,1).split('.')[0]}"
index d829cf9..4364f48 100644 (file)
@@ -9,7 +9,7 @@ test -f $DAEMON || exit 0
 
 grepconf() {
     w="     " # space tab
-    sq=/etc/$NAME.conf
+    sq=/etc/$NAME/$NAME.conf
     # sed is cool.
     res=`sed -ne '
             s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p;