for creole's zephir2 branch

This commit is contained in:
2019-11-23 08:17:35 +01:00
commit 841643e76e
700 changed files with 68183 additions and 0 deletions

18
upgrade/pre_download/10-rsyslog Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# Remove autogenerated configuration files
DO_NOT_TOUCH_REGEXP='eole_templates\|default'
for conf in $(find /etc/rsyslog.d/ -type f -name '*.conf')
do
if echo "${conf}" | grep -qs "${DO_NOT_TOUCH_REGEXP}"
then
# Do nothing
continue
fi
if ! dpkg -S "${conf}" > /dev/null 2>&1
then
echo "Remove generated rsyslog configuration file: “${conf}”"
rm -f "${conf}"
fi
done