wok-6.x diff dolibarr/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents a00bf44ed23d
children a78610b2eb47
line diff
     1.1 --- a/dolibarr/receipt	Sat Aug 10 22:18:41 2013 +0000
     1.2 +++ b/dolibarr/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -72,9 +72,9 @@
     1.4  	db_password=dolibarr
     1.5  	
     1.6  	# Configure apache server
     1.7 -	if [ -f $1/etc/apache/httpd.conf ]; then
     1.8 -		if [ ! -f $1/etc/apache/conf.d/dolibarr.conf ]; then
     1.9 -			cat > $1/etc/apache/conf.d/dolibarr.conf <<EOT
    1.10 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.11 +		if [ ! -f "$1/etc/apache/conf.d/dolibarr.conf" ]; then
    1.12 +			cat > "$1/etc/apache/conf.d/dolibarr.conf" <<EOT
    1.13  <IfModule mod_alias.c>
    1.14      Alias /dolibarr /usr/share/dolibarr/htdocs
    1.15  </IfModule>
    1.16 @@ -95,7 +95,7 @@
    1.17  	fi
    1.18  	
    1.19  	# Configure every thing.
    1.20 -	if [ -z $1 ]; then
    1.21 +	if [ -z "$1" ]; then
    1.22  		if ( ! mysqladmin -s ping > /dev/null ); then
    1.23  			echo "Starting MySQL server"
    1.24  			( /etc/init.d/mysql start ; status  ) || exit