Fixed config upgrades on deb-package reinstall/upgrade.
This commit is contained in:
@@ -89,7 +89,7 @@ then
|
|||||||
echo "Backing up configuration file to /var/backups/alfis.conf.`date +%Y%m%d`"
|
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`
|
cp /etc/alfis.conf /var/backups/alfis.conf.`date +%Y%m%d`
|
||||||
echo "Updating /etc/alfis.conf"
|
echo "Updating /etc/alfis.conf"
|
||||||
/usr/bin/alfis -u /etc/alfis.conf > /etc/alfis.conf
|
/usr/bin/alfis -u /var/backups/alfis.conf.`date +%Y%m%d` > /etc/alfis.conf
|
||||||
chgrp alfis /etc/alfis.conf
|
chgrp alfis /etc/alfis.conf
|
||||||
|
|
||||||
if command -v systemctl >/dev/null; then
|
if command -v systemctl >/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user