| Summary: | leading spaces break detecting cache location | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Andy Gorev <master> |
| Component: | squid | Assignee: | Kostya Timoshenko <kt> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P4 | CC: | egori, shaba |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
. |
Без патча скрипт никогда не детектит расположение кэша. Опция -е излишняя 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 \"$CACHE_SWAP\" ] && CACHE_SWAP=/var/spool/squid for adir in $CACHE_SWAP; do --- ---