diff options
Diffstat (limited to 'source/l/ConsoleKit/doinst.sh')
-rw-r--r-- | source/l/ConsoleKit/doinst.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/l/ConsoleKit/doinst.sh b/source/l/ConsoleKit/doinst.sh index 217d76055..c13a36e3e 100644 --- a/source/l/ConsoleKit/doinst.sh +++ b/source/l/ConsoleKit/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/ConsoleKit/seats.d/00-primary.seat.new -config etc/dbus-1/system.d/ConsoleKit.conf.new +preserve_perms etc/rc.d/rc.consolekit.new |