Bug 2717

Summary: leading spaces break detecting cache location
Product: Sisyphus Reporter: Andy Gorev <master>
Component: squidAssignee: Kostya Timoshenko <kt>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P4 CC: shaba
Version: unstable   
Hardware: all   
OS: Linux   

Description Andy Gorev 2003-07-01 19:05:34 MSD
Без патча скрипт никогда не детектит расположение кэша. Опция -е излишняя IMHO, т.к. без нее тоже работает.

@@ -48,7 +48,7 @@
        # determine which one is the cache_swap directory
        CACHE_SWAP=`sed -e \'s/#.*//g\' /etc/squid/squid.conf | \\
                    grep cache_dir | sed -e \'s/cache_dir//\' | \\
-                   cut -d \' \' -f 2`
+                   sed -e \'s/^ *//g\' | cut -d \' \' -f 2`
        [ -z \&quot;$CACHE_SWAP\&quot; ] &amp;&amp; CACHE_SWAP=/var/spool/squid

         for adir in $CACHE_SWAP; do
---

---

Comment 1 Andy Gorev 2004-05-20 13:43:49 MSD
.