for creole's zephir2 branch
This commit is contained in:
18
upgrade/pre_download/10-rsyslog
Executable file
18
upgrade/pre_download/10-rsyslog
Executable 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
|
Reference in New Issue
Block a user