diff options
Diffstat (limited to '')
-rw-r--r-- | source/n/rpcbind/doinst.sh (renamed from source/n/openssl/openssl0/doinst.sh-openssl-solibs) | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source/n/openssl/openssl0/doinst.sh-openssl-solibs b/source/n/rpcbind/doinst.sh index ed4fdfacb..5f7dfaf55 100644 --- a/source/n/openssl/openssl0/doinst.sh-openssl-solibs +++ b/source/n/rpcbind/doinst.sh @@ -9,4 +9,16 @@ config() { fi # Otherwise, we leave the .new copy for the admin to consider... } -config etc/ssl/openssl.cnf.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.rpc.new |