wok-next diff phpvirtualbox/receipt @ rev 19766
Up cookutils.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jun 12 11:40:38 2017 +0300 (2017-06-12) |
parents | 78cb1e930abd |
children | a3c581bf52b8 |
line diff
1.1 --- a/phpvirtualbox/receipt Sat Sep 07 15:59:12 2013 +0000 1.2 +++ b/phpvirtualbox/receipt Mon Jun 12 11:40:38 2017 +0300 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>