wok diff dolibarr/receipt @ rev 20190

linux: enable serial console
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 02 17:18:55 2018 +0100 (2018-02-02)
parents a00bf44ed23d
children a78610b2eb47
line diff
     1.1 --- a/dolibarr/receipt	Sat Aug 10 22:18:41 2013 +0000
     1.2 +++ b/dolibarr/receipt	Fri Feb 02 17:18:55 2018 +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