wok diff swat/receipt @ rev 20167

Up smtube, smplayer (18.1.0)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Jan 11 13:05:26 2018 +0100 (2018-01-11)
parents 2b9f96603415
children
line diff
     1.1 --- a/swat/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/swat/receipt	Thu Jan 11 13:05:26 2018 +0100
     1.3 @@ -20,9 +20,9 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
     1.8 -		if ! grep -q /usr/share/samba/swat/ $1/etc/lighttpd/lighttpd.conf; then
     1.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/swat/" => "/usr/share/samba/swat/",|g' -i $1/etc/lighttpd/lighttpd.conf
    1.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.11 +		if ! grep -q /usr/share/samba/swat/ "$1/etc/lighttpd/lighttpd.conf"; then
    1.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/swat/" => "/usr/share/samba/swat/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.13  			if [ -z "$1" ]; then
    1.14  				# Start Web server.
    1.15  				/etc/init.d/lighttpd stop