wok diff ocsreports/receipt @ rev 19274

Up cookutils (809)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jul 05 01:51:14 2016 +0300 (2016-07-05)
parents 1067bb7f1e24
children 970c5ec9a60a
line diff
     1.1 --- a/ocsreports/receipt	Wed Dec 16 15:49:50 2015 +0100
     1.2 +++ b/ocsreports/receipt	Tue Jul 05 01:51:14 2016 +0300
     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