[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#411774: apache2.2-common: binary deb contains files in /var/www



Package: apache2.2-common
Version: 2.2.3-3.3

It is an extremely bad idea to ship files directly in /var/www,
because if user removes them, they are re-created every time the
package is upgraded. This breaks the usual expectation that /var/www
is under the control of the system admin.

I strongly suggest that whatever thing this package wants to put
in /var/www is done only the very first time the packaqe is installed
(this may be told by looking at arguments given to postinst).

There is already a complex postinst which does a lot of things.
It would not be a lot of work to modify it so that, additionally,
it copies the required files, for example:

if [ "$1" = "configure" ] && [ "$2" = "" ]; then
  
  copy required files from /usr/share/apache2.2-common to /var/www

fi


The current scheme, where those files are re-installed over and over again
on upgrades, should not be an option.

Thanks.



Reply to: