[Bug 1416885] [NEW] postinst checks wrong path when installing default index.html

Launchpad Bug Tracker 1416885 at bugs.launchpad.net
Tue Feb 3 10:47:50 UTC 2015


You have been subscribed to a public bug by Robie Basak (racb):

the postinst for apache2 2.4.7-1ubuntu4.1  copies an index.html into /var/www/html if it cannot find one in */var/www*
I upgraded a server from lucid->precise->trusty today, and the top page was broken at the end due to this (my site was already in /var/www/html)

install_default_files()
{
        if is_fresh_install $@ || we_are_upgrading_from_wheezy $@ ; then
                if [ ! -e /var/www/index.html  -a \
                        ! -h /var/www/index.html  -a \
                        ! -e /var/www/index.cgi   -a \
                        ! -e /var/www/index.pl    -a \
                        ! -e /var/www/index.php   -a \
                        ! -e /var/www/index.xhtml -a \
                        ! -e /var/www/index.htm ] ; then
                                cp /usr/share/apache2/default-site/index.html /var/www/html/index.html
                fi
        fi
}
--- 
Apache2ConfdDirListing: []
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2010-07-27 (1650 days ago)
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
Package: apache2 2.4.7-1ubuntu4.1
PackageArchitecture: amd64
ProcEnviron:
 LC_CTYPE=en_US.UTF-8
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13
Tags:  trusty
Uname: Linux 3.13.0-45-generic x86_64
UpgradeStatus: Upgraded to trusty on 2015-02-01 (0 days ago)
UserGroups:
 
_MarkForUpload: True
modified.conffile..etc.apache2.conf.available.charset.conf: [modified]
mtime.conffile..etc.apache2.conf.available.charset.conf: 2011-01-07T14:46:11

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-collected trusty
-- 
postinst checks wrong path when installing default index.html
https://bugs.launchpad.net/bugs/1416885
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report.



More information about the Ubuntu-server-bugs mailing list