From b67d785a24fb027e7b50daca6ad77aaf0049d958 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 6 Jan 2012 10:50:01 +0100 Subject: [PATCH] fix copy/paste error, use proper prefix and suffix Signed-off-by: Steven Armstrong --- conf/type/__nfs_export/explorer/entry | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/type/__nfs_export/explorer/entry b/conf/type/__nfs_export/explorer/entry index 4cb10883..3922fbce 100755 --- a/conf/type/__nfs_export/explorer/entry +++ b/conf/type/__nfs_export/explorer/entry @@ -21,12 +21,11 @@ export="$(cat "$__object/parameter/export" 2>/dev/null || echo "/$__object_id")" name="$(echo "${export#/}" | sed 's;/;-;g')" -prefix="#cdist:__cron/$export" -suffix="#/cdist:__cron/$export" - if [ -f "/etc/exports.d/$name" ]; then cat "/etc/exports.d/$name" else + prefix="#cdist:__nfs_export${export}" + suffix="#/cdist:__nfs_export${export}" awk -v prefix="$prefix" -v suffix="$suffix" '{ if (index($0,prefix)) { triggered=1