wok diff ocsreports/receipt @ rev 20120

Up tazpkg (953)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 11:01:32 2017 +0200 (2017-10-14)
parents 1067bb7f1e24
children 970c5ec9a60a
line diff
     1.1 --- a/ocsreports/receipt	Wed Dec 16 15:49:50 2015 +0100
     1.2 +++ b/ocsreports/receipt	Sat Oct 14 11:01:32 2017 +0200
     1.3 @@ -43,9 +43,9 @@
     1.4  post_install()
     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/$PACKAGE ]; then
     1.9 -			cat > $1/etc/apache/conf.d/$PACKAGE <<EOT
    1.10 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.11 +		if [ ! -f "$1/etc/apache/conf.d/$PACKAGE" ]; then
    1.12 +			cat > "$1/etc/apache/conf.d/$PACKAGE" <<EOT
    1.13  <IfModule mod_alias.c>
    1.14      Alias /$PACKAGE /usr/share/$PACKAGE/
    1.15  </IfModule>
    1.16 @@ -66,7 +66,7 @@
    1.17  	fi
    1.18  
    1.19  	# Configure every thing for ocsweb.
    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 
    1.25 @@ -90,7 +90,7 @@
    1.26  post_remove()
    1.27  {
    1.28  
    1.29 -	if [ -z $1 ]; then
    1.30 +	if [ -z "$1" ]; then
    1.31  		echo -n "Would you like to remove data and database files.(y/n) "
    1.32  		read answer
    1.33