Problem: Warning During Update About UCS Templates




During an update you will see the following message:

Warning: UCR templates were not updated. Please check /var/log/univention/updater.log or execute univention-check-templates as root.


The template files are provided by Univention to create the Linux configuration files. They should not be modified.

Step 1

To check which template files are affected execute the mentioned script:

root@ucs:~# univention-check-templates
WARNING: The following UCR templates are modified locally.
Updated versions will be named FILENAME.dpkg-*.
The files should be checked for differences.


Step 2

Identify the changes.
Within the directory /etc/univention/templates/files/etc/ there will be some files with a similar name. Additionally to bash.bashrc you might see bash.bashrc.dpkg-1.

Step 3

Identify the differences of the files with the diff command:

root@ucs:/etc/univention/templates/files/etc# diff bash.bashrc-dpkg-1 bash.bashrc 
> alias "li"="ls -al"

So the bash.bashrc has an additional line with an alias command.


Option 1

Replace the modified template with the one provided by Univention:
mv bash.bashrc-dpkg-1 bash.bashrc

Option 2

Decide to keep the manual edits in case you need them and ignore the warning.

closed #2