diff options
Diffstat (limited to 'network/postfix/doinst.sh')
-rw-r--r-- | network/postfix/doinst.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/network/postfix/doinst.sh b/network/postfix/doinst.sh index b1b16d9f02..5a4c96e902 100644 --- a/network/postfix/doinst.sh +++ b/network/postfix/doinst.sh @@ -2,11 +2,11 @@ config() { NEW="$1" - OLD="`dirname $NEW`/`basename $NEW .new`" + OLD="$(dirname $NEW)/$(basename $NEW .new)" # If there's no config file by that name, mv it over: if [ ! -r $OLD ]; then mv $NEW $OLD - elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy rm $NEW fi # Otherwise, we leave the .new copy for the admin to consider... @@ -33,3 +33,6 @@ config etc/rc.d/rc.postfix.new # This will set the permissions on all postfix files correctly postfix set-permissions + +# Symlinks added by makepkg(8) + |