|
|
@ -25,13 +25,13 @@ state_is=$(diff -q "$__object/parameter/entry" "$__object/explorer/entry" \ |
|
|
|
|| echo absent |
|
|
|
|| 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 |
|
|
|
case "$state_should" in |
|
|
|
present) |
|
|
|
present) |
|
|
|
cat << DONE |
|
|
|
cat << DONE |
|
|
|
cat >> /etc/exports << EOC |
|
|
|
cat >> /etc/exports << EOC |
|
|
|
$(cat "$__object/parameter/entry")" |
|
|
|
$(cat "$__object/parameter/entry") |
|
|
|
EOC |
|
|
|
EOC |
|
|
|
DONE |
|
|
|
DONE |
|
|
|
;; |
|
|
|
;; |
|
|
@ -59,4 +59,6 @@ DONE |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
# re-export if we changed something |
|
|
|
|
|
|
|
echo "exportfs -rf" |
|
|
|
fi |
|
|
|
fi |
|
|
|