diff options
Diffstat (limited to 'ham/svxlink/doinst.sh')
-rw-r--r-- | ham/svxlink/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ham/svxlink/doinst.sh b/ham/svxlink/doinst.sh index 7e5752f26e..af104cbcf1 100644 --- a/ham/svxlink/doinst.sh +++ b/ham/svxlink/doinst.sh @@ -11,6 +11,17 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + config etc/svxlink/svxlink.conf.new config etc/svxlink/remotetrx.conf.new config etc/svxlink/TclVoiceMail.conf.new @@ -22,3 +33,4 @@ config etc/svxlink/svxlink.d/ModuleParrot.conf.new config etc/svxlink/svxlink.d/ModulePropagationMonitor.conf.new config etc/svxlink/svxlink.d/ModuleSelCallEnc.conf.new config etc/svxlink/svxlink.d/ModuleTclVoiceMail.conf.new +preserve_perms etc/rc.d/rc.svxlink.new |