]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- lets bypass commented out entries
authorPaweł Gołaszewski <blues@pld-linux.org>
Sat, 5 Jun 2004 14:29:36 +0000 (14:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.init -> 1.57

mysql.init

index 8eef14de67c99fb6876e4350e94f4378a3b9bb53..20ccae477c1bbeb4bb8420e56c7692e2669cc4b6 100644 (file)
@@ -102,7 +102,7 @@ mysqlgetconfig() {
                config_file=/etc/mysqld.conf
        fi
        
-       config=`grep \"$clusterdir$\" /etc/mysql/clusters.conf | cut -s -f 1 -d '='`
+       config=`grep -v \"^#\" /etc/mysql/clusters.conf | grep \"$clusterdir$\" | cut -s -f 1 -d '='`
        if [ -f "$config" ]; then
                config_file=$config
        elif [ -f /etc/mysql/$config ]; then
This page took 0.04406 seconds and 4 git commands to generate.