wok diff asterisk/receipt @ rev 18924

glibc: fix build (thanks az_ua)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 25 14:47:17 2016 +0200 (2016-02-25)
parents 9c3c32f897b5
children 04d824c95283
line diff
     1.1 --- a/asterisk/receipt	Fri Nov 08 10:09:54 2013 +0000
     1.2 +++ b/asterisk/receipt	Thu Feb 25 14:47:17 2016 +0200
     1.3 @@ -85,36 +85,36 @@
     1.4  {
     1.5  	case "$2" in
     1.6  	mysql_host)
     1.7 -		sed -i "s|^hostname=.*|hostname=$3|" $1/etc/asterisk/cdr_mysql.conf
     1.8 -		sed -i "s|^dbhost=.*|dbhost=$3|" $1/etc/asterisk/res_mysql.conf
     1.9 +		sed -i "s|^hostname=.*|hostname=$3|" "$1/etc/asterisk/cdr_mysql.conf"
    1.10 +		sed -i "s|^dbhost=.*|dbhost=$3|" "$1/etc/asterisk/res_mysql.conf"
    1.11  		;;
    1.12  	mysql_user)
    1.13 -		sed -i "s|^user=.*|user=$3|" $1/etc/asterisk/cdr_mysql.conf
    1.14 -		sed -i "s|^dbuser=.*|dbuser=$3|" $1/etc/asterisk/res_mysql.conf
    1.15 +		sed -i "s|^user=.*|user=$3|" "$1/etc/asterisk/cdr_mysql.conf"
    1.16 +		sed -i "s|^dbuser=.*|dbuser=$3|" "$1/etc/asterisk/res_mysql.conf"
    1.17  		;;
    1.18  	mysql_password)
    1.19 -		sed -i "s|^password=.*|password=$3|" $1/etc/asterisk/cdr_mysql.conf
    1.20 -		sed -i "s|^dbpass=.*|dbpass=$3|" $1/etc/asterisk/res_mysql.conf
    1.21 +		sed -i "s|^password=.*|password=$3|" "$1/etc/asterisk/cdr_mysql.conf"
    1.22 +		sed -i "s|^dbpass=.*|dbpass=$3|" "$1/etc/asterisk/res_mysql.conf"
    1.23  		;;
    1.24  	mysql_database)
    1.25 -		sed -i "s|^dbname=.*|dbname=$3|" $1/etc/asterisk/res_mysql.conf \
    1.26 -						 $1/etc/asterisk/cdr_mysql.conf
    1.27 +		sed -i "s|^dbname=.*|dbname=$3|" "$1/etc/asterisk/res_mysql.conf" \
    1.28 +						 "$1/etc/asterisk/cdr_mysql.conf"
    1.29  		;;
    1.30  	pgsql_host)
    1.31 -		sed -i "s|^hostname=.*|hostname=$3|" $1/etc/asterisk/cdr_pgsql.conf
    1.32 -		sed -i "s|^dbhost=.*|dbhost=$3|" $1/etc/asterisk/res_pgsql.conf
    1.33 +		sed -i "s|^hostname=.*|hostname=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
    1.34 +		sed -i "s|^dbhost=.*|dbhost=$3|" "$1/etc/asterisk/res_pgsql.conf"
    1.35  		;;
    1.36  	pgsql_user)
    1.37 -		sed -i "s|^user=.*|user=$3|" $1/etc/asterisk/cdr_pgsql.conf
    1.38 -		sed -i "s|^dbuser=.*|dbuser=$3|" $1/etc/asterisk/res_pgsql.conf
    1.39 +		sed -i "s|^user=.*|user=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
    1.40 +		sed -i "s|^dbuser=.*|dbuser=$3|" "$1/etc/asterisk/res_pgsql.conf"
    1.41  		;;
    1.42  	pgsql_password)
    1.43 -		sed -i "s|^password=.*|password=$3|" $1/etc/asterisk/cdr_pgsql.conf
    1.44 -		sed -i "s|^dbpass=.*|dbpass=$3|" $1/etc/asterisk/res_pgsql.conf
    1.45 +		sed -i "s|^password=.*|password=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
    1.46 +		sed -i "s|^dbpass=.*|dbpass=$3|" "$1/etc/asterisk/res_pgsql.conf"
    1.47  		;;
    1.48  	pgsql_database)
    1.49 -		sed -i "s|^dbname=.*|dbname=$3|" $1/etc/asterisk/res_pgsql.conf \
    1.50 -						 $1/etc/asterisk/cdr_pgsql.conf
    1.51 +		sed -i "s|^dbname=.*|dbname=$3|" "$1/etc/asterisk/res_pgsql.conf" \
    1.52 +						 "$1/etc/asterisk/cdr_pgsql.conf"
    1.53  		;;
    1.54  	*)	cat <<EOT
    1.55  mysql_host	hostname or ip of mysql server