diff options
Diffstat (limited to 'network/lighttpd2/doinst.sh')
-rw-r--r-- | network/lighttpd2/doinst.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/network/lighttpd2/doinst.sh b/network/lighttpd2/doinst.sh index 58590b923f..a2bfef2076 100644 --- a/network/lighttpd2/doinst.sh +++ b/network/lighttpd2/doinst.sh @@ -22,15 +22,16 @@ preserve_perms() { config etc/lighttpd2/lighttpd.conf.new config etc/lighttpd2/angel.conf.new config etc/lighttpd2/mimetypes.conf.new +config etc/lighttpd2/php-fpm.lua.new config etc/logrotate.d/lighttpd2.new preserve_perms etc/rc.d/rc.lighttpd2.new -preserve_perms etc/rc.d/rc.spawn-fcgi.new -# Create dummy logfiles, but throw them away if logfiles are already here: +# Create dummy logfiles, but throw them away if some are already here: for i in access error ; do - if [ -e var/log/lighttpd2/${i}.log ]; then - rm -f var/log/lighttpd2/${i}.log.new + if [ -e var/log/lighttpd2/$i.log ]; then + rm -f var/log/lighttpd2/$i.log.new else - mv var/log/lighttpd2/${i}.log{.new,} + mv var/log/lighttpd2/$i.log.new \ + var/log/lighttpd2/$i.log fi done |