From f420813b42bf485dd7ee3a95cd494736a7fbcc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 28 Nov 2009 23:01:03 +0000 Subject: [PATCH] also show the subdir in get_path output --- tools/alternc_get_path | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/alternc_get_path b/tools/alternc_get_path index 981488b9..f347825d 100644 --- a/tools/alternc_get_path +++ b/tools/alternc_get_path @@ -4,7 +4,7 @@ path="$1" account=`echo "$path" | sed 's#/var/alternc/html/./##' | cut -d '/' -f 1` relpath=`echo "$path" | sed 's#/var/alternc/html/./[^/]*##'` -request="SELECT membres.login AS user, CONCAT(s.sub, '.', s.domaine) AS fqdn FROM sub_domaines s INNER JOIN membres ON s.compte=uid WHERE login='$account' AND s.type = 0 AND '$relpath' LIKE CONCAT(s.valeur,'%') ORDER BY sub ASC;" +request="SELECT membres.login AS user, CONCAT(s.sub, '.', s.domaine, s.valeur) AS fqdn FROM sub_domaines s INNER JOIN membres ON s.compte=uid WHERE login='$account' AND s.type = 0 AND '$relpath' LIKE CONCAT(s.valeur,'%') ORDER BY sub ASC;" mysql --defaults-file=/etc/alternc/my.cnf -B -e "$request"