Bug 51075 - During Upgrade from 4.2-x to 4.3-x /etc/defaults/apache-htcacheclean gets overwritten
During Upgrade from 4.2-x to 4.3-x /etc/defaults/apache-htcacheclean gets ove...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Apache
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-04-08 12:47 CEST by Christian Völker
Modified: 2020-04-08 12:47 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020040821000357
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Völker univentionstaff 2020-04-08 12:47:35 CEST
I know, already old versions. But the file will be corrupt even on 4.4 when the where upgraded from 4.2-x. File content should be fixed!

The file /etc/default/apache-htcacheclean gets introduced in 4.3-x (does not exist on 4.2)

After the upgrade the file looks like this:
===========================================
# Warning: This file is auto-generated and might be overwritten by
#          univention-config-registry.
#          Please edit the following file(s) instead:
# Warnung: Diese Datei wurde automatisch generiert und kann durch
#          univention-config-registry überschrieben werden.
#          Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
# 
# 	/etc/univention/templates/files/etc/default/apache2
# 


# 0 = start on boot; 1 = don't start on boot

NO_START=0
============================================

This is clearly wrong as this is the content of default/apache2!

On a system which was installed freshly as 4.3 and got updated to 4.4 the file looks like this:
=============================================
root@ucs:~# cat /etc/default/apache-htcacheclean 
# This file must only contain KEY=VALUE lines. Do not use advanced
# shell script constructs!

## run mode: cron, daemon
## run in daemon mode or as daily cron job
## default: daemon
HTCACHECLEAN_MODE=daemon

## cache size
HTCACHECLEAN_SIZE=300M

## interval: if in daemon mode, clean cache every x minutes
HTCACHECLEAN_DAEMON_INTERVAL=120

## path to cache
## must be the same as in CacheRoot directive
#HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk

## additional options:
## -n : be nice
## -t : remove empty directories
HTCACHECLEAN_OPTIONS="-n"
=================================================

Which looks correct.

We should fix this issue as there might be future issuees with this!


And no, there was no manual interaction with this file!