on ne prends pas en compte les gid / uid / mode differs lors du diff des fichiers de conf
This commit is contained in:
parent
5e37a8ec8c
commit
2969280afa
|
@ -61,6 +61,7 @@ INSTALLED_CONFIG_TAR="/var/backups/alternc/etc-installed.tar.gz"
|
||||||
#
|
#
|
||||||
if [ -f "$INSTALLED_CONFIG_TAR" ]; then
|
if [ -f "$INSTALLED_CONFIG_TAR" ]; then
|
||||||
CHANGED="`tar -zdf "$INSTALLED_CONFIG_TAR" -C / 2> /dev/null |
|
CHANGED="`tar -zdf "$INSTALLED_CONFIG_TAR" -C / 2> /dev/null |
|
||||||
|
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"
|
||||||
|
|
Loading…
Reference in New Issue