diff options
author | Bogdan Radulescu <bogdan@nimblex.net> | 2013-03-31 00:38:43 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-04-15 17:20:29 -0500 |
commit | c8fb4db3a3e9afd97155c969b8fd700c645a3070 (patch) | |
tree | e2faec6686503635f6d039f26396c43ed15943f9 /libraries/libvirt/doinst.sh | |
parent | 3a494d5cc53dbe1ba73046e1c3735a96c9ba9ba2 (diff) | |
download | slackbuilds-c8fb4db3a3e9afd97155c969b8fd700c645a3070.tar.gz |
libraries/libvirt: Updated for version 1.0.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libvirt/doinst.sh')
-rw-r--r-- | libraries/libvirt/doinst.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libraries/libvirt/doinst.sh b/libraries/libvirt/doinst.sh index 9ca1b21e7e..e1b32b324d 100644 --- a/libraries/libvirt/doinst.sh +++ b/libraries/libvirt/doinst.sh @@ -1,4 +1,3 @@ -#!/bin/sh config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" @@ -12,4 +11,16 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -config etc/rc.d/rc.libvirt.new +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 +} + +preserve_perms etc/rc.d/rc.libvirt.new + |