do not faild the script when non-zero diff on dnf settings

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-08-01 07:22:07 +02:00
parent 018fcce82c
commit 2d5c36d354
2 changed files with 3 additions and 1 deletions

View file

@ -15,7 +15,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak
cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf
set +e
diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf
set -e
sudo systemctl enable dnf-automatic.timer sudo systemctl enable dnf-automatic.timer
sudo systemctl start dnf-automatic.timer sudo systemctl start dnf-automatic.timer

View file

@ -30,7 +30,7 @@ emit_via = stdio,email
[email] [email]
# The address to send email messages from. # The address to send email messages from.
email_from = root@skinnyv email_from = root
# List of addresses to send messages to. # List of addresses to send messages to.
email_to = admin@cyplo.net email_to = admin@cyplo.net