enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #04060
[Bug 1416885] [NEW] postinst checks wrong path when installing default index.html
Public bug reported:
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
** Tags added: apport-collected trusty
** Description changed:
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
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1416885
Title:
postinst checks wrong path when installing default index.html
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1416885/+subscriptions
Follow ups
References