don't warn on main.cf configuration changes

This commit is contained in:
Antoine Beaupré 2008-10-06 22:21:37 +00:00
parent 704bc022ec
commit ca6dfe5d83
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ INSTALLED_CONFIG_TAR="/var/backups/alternc/etc-installed.tar.gz"
# #
if [ -f "$INSTALLED_CONFIG_TAR" ]; then if [ -f "$INSTALLED_CONFIG_TAR" ]; then
CHANGED="`env LANG=C tar -zdf "$INSTALLED_CONFIG_TAR" -C / 2> /dev/null | CHANGED="`env LANG=C tar -zdf "$INSTALLED_CONFIG_TAR" -C / 2> /dev/null |
grep -v 'Uid differs'|grep -v 'Gid differs' |grep -v 'Mode differs' | grep -v 'postfix/main.cf' | grep -v 'Uid differs'|grep -v 'Gid differs' |grep -v 'Mode differs' |
sed -e 's/^\([^:]*\).*/ \1/' | sort -u`" sed -e 's/^\([^:]*\).*/ \1/' | sort -u`"
if [ ! -z "$CHANGED" ]; then if [ ! -z "$CHANGED" ]; then
echo "The following configuration files has changed since last AlternC" echo "The following configuration files has changed since last AlternC"