# HG changeset patch # User Pascal Bellard # Date 1385714649 0 # Node ID fd0d0addaaf910916b5cd4c1e33356c5758c2204 # Parent 32c378543238dd558748de2f43c4853875ebef53 lighttpd: fix pre/post install diff -r 32c378543238 -r fd0d0addaaf9 lighttpd/receipt --- a/lighttpd/receipt Tue Nov 26 07:48:06 2013 +0000 +++ b/lighttpd/receipt Fri Nov 29 08:44:09 2013 +0000 @@ -77,17 +77,17 @@ echo "Processing pre-install commands..." [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop # Backup config file. - if [ -d $1/$CONFIG_FILES ]; then - cp -a $1/$CONFIG_FILES $1/$CONFIG_FILES.bak + if [ -d $1/etc/lighttpd ]; then + cp -a $1/etc/lighttpd $1/etc/lighttpd.bak fi } post_install() { echo "Processing post-install commands..." # Restore original config. - if [ -d $1/$CONFIG_FILES.bak ]; then - rm -rf $1/$CONFIG_FILES - mv $1/$CONFIG_FILES.bak $1/$CONFIG_FILES + if [ -d $1/etc/lighttpd.bak ]; then + rm -rf $1/etc/lighttpd + mv $1/etc/lighttpd.bak $1/etc/lighttpd fi # Just in case. chown www.www $1/var/log/$PACKAGE