Module Name: src Committed By: christos Date: Fri Apr 5 16:44:54 UTC 2024
Modified Files: src/usr.sbin/postinstall: postinstall.in Log Message: remove dup named dir To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/usr.sbin/postinstall/postinstall.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/postinstall/postinstall.in diff -u src/usr.sbin/postinstall/postinstall.in:1.62 src/usr.sbin/postinstall/postinstall.in:1.63 --- src/usr.sbin/postinstall/postinstall.in:1.62 Sun Mar 10 14:23:18 2024 +++ src/usr.sbin/postinstall/postinstall.in Fri Apr 5 12:44:54 2024 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: postinstall.in,v 1.62 2024/03/10 18:23:18 rillig Exp $ +# $NetBSD: postinstall.in,v 1.63 2024/04/05 16:44:54 christos Exp $ # # Copyright (c) 2002-2022 The NetBSD Foundation, Inc. # All rights reserved. @@ -1706,6 +1706,12 @@ do_named() compare_dir "${op}" "${SRC_DIR}/etc/namedb" "${DEST_DIR}/etc/namedb" \ 644 \ root.cache + + local od="${DEST_DIR}/usr/libexec/named" + if [ -d "$od" ]; then + rm -fr "$od" + msg "Removed obsolete '${od}'" + fi }