forked from ungleich-public/cdist
run exportfs after changing /etc/exports, bugix: remove trailing quote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
6fe66834fd
commit
4e4a1598b2
1 changed files with 6 additions and 4 deletions
|
@ -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 [ "$exports_d" != "present" ]; then
|
||||
case "$state_should" in
|
||||
present)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue