From 301d868673d570342c7ea96878def645e495c675 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 7 Jan 2016 10:49:45 -0200 Subject: Process pfSense.obsoletedfiles on nanobsd. Spotted by phil-davis --- tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL | 2 +- tools/templates/core_pkg/base/metadir/+INSTALL | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/templates') diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL b/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL index d86a758..b1f7854 100644 --- a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL +++ b/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL @@ -37,7 +37,7 @@ IFS=" PLATFORM=$(cat /etc/platform) # Process obsolete files -if [ "${PLATFORM}" != "nanobsd" -a -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then +if [ -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then for f in $(cat /etc/%%PRODUCT_NAME%%.obsoletedfiles); do if [ -n "${f}" -a -d "${f}" ]; then chflags -R noschg "${f}" diff --git a/tools/templates/core_pkg/base/metadir/+INSTALL b/tools/templates/core_pkg/base/metadir/+INSTALL index d86a758..b1f7854 100644 --- a/tools/templates/core_pkg/base/metadir/+INSTALL +++ b/tools/templates/core_pkg/base/metadir/+INSTALL @@ -37,7 +37,7 @@ IFS=" PLATFORM=$(cat /etc/platform) # Process obsolete files -if [ "${PLATFORM}" != "nanobsd" -a -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then +if [ -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then for f in $(cat /etc/%%PRODUCT_NAME%%.obsoletedfiles); do if [ -n "${f}" -a -d "${f}" ]; then chflags -R noschg "${f}" -- cgit v1.1