summaryrefslogtreecommitdiff
path: root/debian/apache2.postinst
AgeCommit message (Collapse)AuthorFilesLines
2016-09-21Update apache-htcacheclean.init to have sensible Default-Start valuesRaphaël Hertzog1-15/+34
With the old value, "systemctl enable apache-htcacheclean" would fail like this: Synchronizing state of apache-htcacheclean.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable apache-htcacheclean update-rc.d: error: apache-htcacheclean Default-Start contains no runlevels, aborting. So we add meta-data to make the script enabled by default but we actually disable it immediately in the postinst. And we can clean up some hacks that we introduced to cover for the Default-Start value being empty.
2016-08-10Fix conffiles from wheezy upgradeStefan Fritsch1-0/+20
Some conffile may have got the wrong content during upgrade from wheezy to early jessie versions. In order to fix this without dpkg prompting the user, we need to replace those conffiles during preinst. Unfortunately, in preinst the package is not yet unpacked so we cannot access any of its files. Therefore, the correct conffile content is embedded in a base64 encoded tarball in the preinst script.
2016-08-07Fix error handling in is_problematic_index_html() in postinstStefan Fritsch1-2/+2
The 'return 1' could never trigger because cut always returns 0.
2016-07-05Revert "Fix conffiles from wheezy upgrade"Stefan Fritsch1-20/+0
Revert fix for now. Will upload 2.4.23 first and then include the fix in a later upload when it got more testing. This reverts commit be57de2935c807f7fef290d96ce699fc160f0036.
2016-05-29Fix conffiles from wheezy upgradeStefan Fritsch1-0/+20
Some conffile may have got the wrong content during upgrade from wheezy to early jessie versions. In order to fix this without dpkg prompting the user, we need to replace those conffiles during preinst. Unfortunately, in preinst the package is not yet unpacked so we cannot access any of its files. Therefore, the correct conffile content is embedded in a base64 encoded tarball in the preinst script.
2016-05-28Remove links to manpages.debian.org in default index.htmlStefan Fritsch1-0/+23
While there, add some rel="nofollow" to other links. Also update problematic index.html files in postinst.
2016-03-28rework htcacheclean integrationStefan Fritsch1-1/+41
* split into separate init script * activate/deactivate with a2enmod/a2dismo cache_disk * don't run as root * add test
2015-10-24Don't treat mpm_itk as MPM module in deferred actionsStefan Fritsch1-1/+1
2015-07-20Fixed tests on deferred mpm switch (#789914)Jean-Michel Vourgère1-7/+7
2015-06-08Process actions in trigger states. #787103Colin Watson1-1/+1
2015-06-07Removed pre-jessie code from maintainer scriptsJean-Michel Vourgère1-15/+2
2015-05-28Drop 2.2 migration scriptsJean-Michel Vourgère1-303/+5
2015-04-28Add proxy_html.confStefan Fritsch1-0/+6
2014-09-28lintian: invoke logger without pathStefan Fritsch1-2/+2
2014-09-28fix logic to get current MPMStefan Fritsch1-1/+1
2014-09-28Defer actions by maintscript-helper if apache2 is unconfiguredStefan Fritsch1-0/+72
If apache2 is not yet configured, the configuration files for modules etc. are not yet installed. Defer all actions by apache2-maintscript-helper in this case and execute them in apache2.postinst.
2014-09-21re-add mod_identStefan Fritsch1-1/+0
2014-04-27Fix docroot change falloutStefan Fritsch1-8/+16
Fix logic in postinst to detect existing index.* files in both DocumentRoots, the old /var/www and the new /var/www/html. Also change the compiled in default DocumentRoot to /var/www/html.
2013-12-23Add a warning to ITK users of the current Debian TestingArno Töll1-0/+24
2013-11-24Change the default document root to /var/www/htmlArno Töll1-1/+1
2013-11-07Drop the itk package, it is provided as from its own source package in futureArno Töll1-1/+5
2013-07-21refresh dependencies in postinstStefan Fritsch1-0/+10
2013-07-20Also reinstall index.html when upgrading from Wheezy as its removed during ↵Arno Töll1-1/+1
the upgrade
2013-05-30More Squeeze -> Wheezy which I had forgotten apparentlyArno Töll1-5/+5
2013-05-20Properly escape possibly undefined variables in apache2.postinstArno Töll1-1/+1
2013-05-11Enable mod_authn_core when upgrading from wheezyStefan Fritsch1-1/+1
2013-05-08Rename Squeeze -> Wheezy in scriptsArno Töll1-15/+15
2012-04-21Explicitly enable mod_authz_core on upgrades.Stefan Fritsch1-1/+1
It can happen that it is not pulled in by any of the enabled modules, but we need it in any case for apache2.conf. Closes: #669876
2012-04-15Re-add the ITK MPM.Stefan Fritsch1-3/+1
The build process can probably be made more elegant, but for now it seems to work
2012-04-15* rename usr-lib-cgi-bin.conf -> that sounds hopefully a bit more helpfulArno Töll1-4/+5
* Remove comments from apache2.conf, we're done with it * Synchronize comments in 000-default.conf and default-ssl.conf * Provide httpd and httpd-cgi virtual packages again
2012-04-14* Move the configuration of /usr/lib/cgi-bin into a separate config file.Stefan Fritsch1-0/+4
* Comment out per-vhost loglevel. * Update comments and re-arrange directives in in vhost configs.
2012-04-09* Enable stateful configuration handlingArno Töll1-6/+10
* Add -m flag to a2enmod to enable that mode * Update apache2-maintscript-helper to make use of that mode * Document the -m flag in manpages * Remove /var/lib/apache2 on purge * Fix matching issues in apache2-maintscript-helper. Make sure it only matches exact patterns.
2012-03-27version.load is now obsolete, tooStefan Fritsch1-1/+2
2012-03-27Do not try to remove 2.2 maintainer scripts if we're not upgrading. Plus omitArno Töll1-2/+4
ugly warnings for fresh installations
2012-03-18remove code that duplicates refresh_modules() functionalityStefan Fritsch1-7/+0
2012-03-17enable more modules during new install, alwayw enable access_compatStefan Fritsch1-36/+17
Without access_compat, nearly no legacy .htaccess file will work. Also enable new dependencies for already enabled modules
2012-03-17purge apache2.2-common's postrmStefan Fritsch1-0/+10
Otherwise it would cause havoc on purge
2012-03-17add some debug outputStefan Fritsch1-0/+2
2012-03-17another todo, debug outputStefan Fritsch1-0/+2
2012-03-17Enable mod_filter on upgrade, note TODOsStefan Fritsch1-1/+3
2012-03-16unexpand tabs, no code changeStefan Fritsch1-106/+106
2012-03-14Add some quotingStefan Fritsch1-7/+7
better be safe than sorry
2012-03-14Treat old version of httpd.conf as unchangedStefan Fritsch1-1/+3
This version came with some 2.0.x package
2012-03-07Add MPM transitional packageArno Töll1-17/+48
* Add transitional packages for MPMs (except itk which breaks upgrades for users which did not have apache2 installed. On purpose? * Fix an evil bug in postinst [ -n $foo ] != [ -n "$foo" ] * Guess whether to enable mod_access_compat
2012-03-05Tweak documentation installed along the packagesArno Töll1-1/+2
* Install docs through dh_installdocs * Install changelogs in packages which can be installed autonomously from each other only * Install README.Debian and NEWS file in apache2 package only * Add an apache2-suexec transitional package, make dependencies appropriate in a way the apache2-suexec package is virtual, too * Add a mod_cache_disk note in postinst to be addressed later
2012-03-05Fix various smaller bugs in debian/rules, helper scripts and postinstArno Töll1-11/+48
* re-enable the complicated index.html install logic from the 2.2 package * drop Ubuntu specific patches, we expect them to carry them themselves their package divergese already anyway. * Drop ac_cv_prog_LYNX_PATH=www-browser. We ship both, our own envvars and our own apachectl. Thus it is effectively a no-op for a long time already. * Run enable_default_modules and enable_default_conf and enable_default_mpm in postinst only on new installation, being it 2.2 or 2.4 * touch have other_vhosts_access.log in postinst, too * Drop emptry directories in apache2-dev and apache2-doc * Install examples in the apache2-doc package
2012-03-02* Drop obsolete maintainer scripts from 2.2Arno Töll1-4/+26
* Implement some purge logic in postrm * Write a NEWS entry * Implement a trap door function in postrm * Move mod_disk_cache -> mod_cache_disk
2012-02-29* Provide a man page link from apxs2 to apxsArno Töll1-0/+2
* Create the index.html directory in apache2-data where the file is actually installed (but keep the postinst handler to activate it in apache2.postinst. Find out whether I am totally insane now) * Rework package descriptions and synopsis lines * Make the init script Lintian happy * Write a Lintian override for our unusual permissions
2012-02-29Do a proper transition of httpd.conf if it existsArno Töll1-2/+22
2012-02-25Require a .conf suffix for site configurationArno Töll1-40/+43
* Give files in sites-available a .conf suffix * Handle conffile move properly * Fix some bugs in the conffile movement * Teach a2enmod how to enable files in sites-available with .conf suffix * Update apache2.conf to include such files only, give a short summary how to configure apache * Simplify conffile migration handling