fix copy/paste error, use proper prefix and suffix
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
4e4a1598b2
commit
b67d785a24
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue