From 4e4a1598b28ccee48eaa1d8dbdbfa95e0485f637 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 6 Jan 2012 10:47:51 +0100 Subject: [PATCH] run exportfs after changing /etc/exports, bugix: remove trailing quote Signed-off-by: Steven Armstrong --- conf/type/__nfs_export/gencode-remote | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/type/__nfs_export/gencode-remote b/conf/type/__nfs_export/gencode-remote index d0e1e1a1..60b1c9a7 100755 --- a/conf/type/__nfs_export/gencode-remote +++ b/conf/type/__nfs_export/gencode-remote @@ -25,13 +25,13 @@ state_is=$(diff -q "$__object/parameter/entry" "$__object/explorer/entry" \ || echo absent ) -if [ "$exports_d" != "present" ]; then - if [ "$state_is" != "$state_should" ]; then +if [ "$state_is" != "$state_should" ]; then + if [ "$exports_d" != "present" ]; then case "$state_should" in present) - cat << DONE + cat << DONE cat >> /etc/exports << EOC -$(cat "$__object/parameter/entry")" +$(cat "$__object/parameter/entry") EOC DONE ;; @@ -59,4 +59,6 @@ DONE ;; esac fi + # re-export if we changed something + echo "exportfs -rf" fi