wok diff phpvirtualbox/receipt @ rev 20521
Up fwknop (2.6.10)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 05 18:55:17 2018 +0100 (2018-11-05) |
parents | 78cb1e930abd |
children | 8dd8bab3f0ca |
line diff
1.1 --- a/phpvirtualbox/receipt Sat Sep 07 15:59:12 2013 +0000 1.2 +++ b/phpvirtualbox/receipt Mon Nov 05 18:55:17 2018 +0100 1.3 @@ -26,13 +26,13 @@ 1.4 post_install() 1.5 { 1.6 # Virtualbox OSE needs to disable authenication for vboxwebsrv 1.7 - [ -d $1/var/lib/tazpkg/installed/virtualbox ] || 1.8 - chroot $1/ VBoxManage setproperty websrvauthlibrary null 1.9 + [ -d "$1/var/lib/tazpkg/installed/virtualbox" ] || 1.10 + chroot "$1/" VBoxManage setproperty websrvauthlibrary null 1.11 1.12 # Configure lighttpd server 1.13 - if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.14 - if ! grep -q /usr/share/phpvirtualbox/ $1/etc/lighttpd/lighttpd.conf; then 1.15 - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpvirtualbox/" => "/usr/share/phpvirtualbox/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.16 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.17 + if ! grep -q /usr/share/phpvirtualbox/ "$1/etc/lighttpd/lighttpd.conf"; then 1.18 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpvirtualbox/" => "/usr/share/phpvirtualbox/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.19 if [ -z "$1" ]; then 1.20 # Start Web server. 1.21 /etc/init.d/lighttpd stop 1.22 @@ -41,9 +41,9 @@ 1.23 fi 1.24 fi 1.25 # Configure apache server 1.26 - if [ -f $1/etc/apache/httpd.conf ]; then 1.27 - if [ ! -f $1/etc/apache/conf.d/phpvirtualbox ]; then 1.28 - cat > $1/etc/apache/conf.d/phpvirtualbox <<EOT 1.29 + if [ -f "$1/etc/apache/httpd.conf" ]; then 1.30 + if [ ! -f "$1/etc/apache/conf.d/phpvirtualbox" ]; then 1.31 + cat > "$1/etc/apache/conf.d/phpvirtualbox" <<EOT 1.32 <IfModule mod_alias.c> 1.33 Alias /phpvirtualbox /usr/share/phpvirtualbox 1.34 </IfModule>