wok diff lighttpd/receipt @ rev 18980
Up: New wallpapers and new mirror.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Tue Mar 15 05:30:13 2016 -0300 (2016-03-15) |
parents | 9e01bc6321ea |
children | 3630f18392bd |
line diff
1.1 --- a/lighttpd/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/lighttpd/receipt Tue Mar 15 05:30:13 2016 -0300 1.3 @@ -55,8 +55,7 @@ 1.4 1.5 # Modules. 1.6 mkdir -p $fs/usr/lib/lighttpd 1.7 - for module in $BASE_MODULES 1.8 - do 1.9 + for module in $BASE_MODULES; do 1.10 cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd 1.11 echo -n "Copying : mod_${module}.so" && status 1.12 done 1.13 @@ -80,21 +79,21 @@ 1.14 # We stop the server by default in case of upgarde. 1.15 pre_install() 1.16 { 1.17 - echo "Processing pre-install commands..." 1.18 [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop 1.19 # Backup config file. 1.20 if [ -d "$1/etc/lighttpd" ]; then 1.21 cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak" 1.22 fi 1.23 } 1.24 + 1.25 post_install() 1.26 { 1.27 - echo "Processing post-install commands..." 1.28 # Restore original config. 1.29 if [ -d "$1/etc/lighttpd.bak" ]; then 1.30 rm -rf "$1/etc/lighttpd" 1.31 mv "$1/etc/lighttpd.bak" "$1/etc/lighttpd" 1.32 fi 1.33 + 1.34 # Just in case. 1.35 chown www.www "$1/var/log/$PACKAGE" 1.36 [ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 ||