wok-stable rev 12411
lighttpd: fix pre/post install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 29 08:44:09 2013 +0000 (2013-11-29) |
parents | 32c378543238 |
children | 0d00466fb4e4 |
files | lighttpd/receipt |
line diff
1.1 --- a/lighttpd/receipt Tue Nov 26 07:48:06 2013 +0000 1.2 +++ b/lighttpd/receipt Fri Nov 29 08:44:09 2013 +0000 1.3 @@ -77,17 +77,17 @@ 1.4 echo "Processing pre-install commands..." 1.5 [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop 1.6 # Backup config file. 1.7 - if [ -d $1/$CONFIG_FILES ]; then 1.8 - cp -a $1/$CONFIG_FILES $1/$CONFIG_FILES.bak 1.9 + if [ -d $1/etc/lighttpd ]; then 1.10 + cp -a $1/etc/lighttpd $1/etc/lighttpd.bak 1.11 fi 1.12 } 1.13 post_install() 1.14 { 1.15 echo "Processing post-install commands..." 1.16 # Restore original config. 1.17 - if [ -d $1/$CONFIG_FILES.bak ]; then 1.18 - rm -rf $1/$CONFIG_FILES 1.19 - mv $1/$CONFIG_FILES.bak $1/$CONFIG_FILES 1.20 + if [ -d $1/etc/lighttpd.bak ]; then 1.21 + rm -rf $1/etc/lighttpd 1.22 + mv $1/etc/lighttpd.bak $1/etc/lighttpd 1.23 fi 1.24 # Just in case. 1.25 chown www.www $1/var/log/$PACKAGE