Fixed updating config file on package upgrade.
This commit is contained in:
@@ -84,8 +84,8 @@ then
|
||||
mkdir -p /var/backups
|
||||
echo "Backing up configuration file to /var/backups/alfis.conf.`date +%Y%m%d`"
|
||||
cp /etc/alfis.conf /var/backups/alfis.conf.`date +%Y%m%d`
|
||||
echo "Normalising and updating /etc/alfis.conf"
|
||||
/usr/bin/alfis -u /var/backups/alfis.conf.`date +%Y%m%d` > /etc/alfis.conf
|
||||
echo "Updating /etc/alfis.conf"
|
||||
/usr/bin/alfis -u /etc/alfis.conf > /etc/alfis.conf
|
||||
chgrp alfis /etc/alfis.conf
|
||||
|
||||
if command -v systemctl >/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user