diff options
author | Gustavo Conrad <gusconrad@gmail.com> | 2015-01-10 07:02:37 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-10 07:45:57 +0700 |
commit | 2b14f25b867c4ea071006bcc8354bf6a6bde904f (patch) | |
tree | a39ca0b2a5c81cdb7c694205f1187a7c1f9d70d4 /ham/svxlink/doinst.sh | |
parent | 9a132a15629af2534e349964892a8555888a93b3 (diff) | |
download | slackbuilds-2b14f25b867c4ea071006bcc8354bf6a6bde904f.tar.gz |
ham/svxlink: Updated for version 14.08.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 |