diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2014-11-25 13:22:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-25 13:22:53 +0700 |
commit | 29085d0e9482097f259e08a8dc0617b92f521b03 (patch) | |
tree | 01b1739cd22daf3453dfc041af31cb08b2178fb6 /network/amavisd-new/doinst.sh | |
parent | 7e749e05dfd0f504c02a59d9c88bb44f9649f0c9 (diff) | |
download | slackbuilds-29085d0e9482097f259e08a8dc0617b92f521b03.tar.gz |
network/amavisd-new: Updated for version 2.10.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/amavisd-new/doinst.sh')
-rw-r--r-- | network/amavisd-new/doinst.sh | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/network/amavisd-new/doinst.sh b/network/amavisd-new/doinst.sh index ad648167ec..637ab6bc82 100644 --- a/network/amavisd-new/doinst.sh +++ b/network/amavisd-new/doinst.sh @@ -11,17 +11,13 @@ 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 -} +# Keep same perms on rc.amavisd.new: +if [ -e etc/rc.d/rc.amavisd-new ]; then + cp -a etc/rc.d/rc.amavisd-new etc/rc.d/rc.amavisd-new.new.incoming + cat etc/rc.d/rc.amavisd-new.new > etc/rc.d/rc.amavisd-new.new.incoming + mv etc/rc.d/rc.amavisd-new.new.incoming etc/rc.d/rc.amavisd-new.new +fi -preserve_perms etc/rc.d/rc.amavisd-new.new -preserve_perms etc/amavisd.conf.new -preserve_perms etc/logrotate.d/amavisd-new.new +config etc/rc.d/rc.amavisd-new.new +config etc/amavisd.conf.new +config etc/logrotate.d/amavisd-new.new |