]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added more detection locations for smbclient in basic_auth/SMB helper configlet.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 23 Mar 2010 11:09:45 +0000 (12:09 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 23 Mar 2010 11:09:45 +0000 (12:09 +0100)
helpers/basic_auth/SMB/config.test

index 5b11788d17aab56f44f980b96b312de6131618c9..f41b21fd12ec709d7b79571bfcdd0f2c1cf9e8f3 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
-if [ -x ${SAMBAPREFIX:-/usr/local/samba}/bin/smbclient ]; then
-       exit 0
-fi
+for prefix in ${SAMBAPREFIX} /usr/local /opt /opt/samba /usr/local/samba /usr
+do
+    if [ -x ${prefix}/bin/smbclient ]; then
+        exit 0
+    fi
+done
 exit 1