diff options
-rwxr-xr-x | cfengine/script.update_sambashares.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cfengine/script.update_sambashares.sh b/cfengine/script.update_sambashares.sh index e41d259..4ace9aa 100755 --- a/cfengine/script.update_sambashares.sh +++ b/cfengine/script.update_sambashares.sh @@ -1,5 +1,8 @@ #!/bin/sh +# Fail on error - to leave cf_tmpfile for investigation +set -e + m4 -DFQDN=$(hostname -f) /etc/local-COMMON/samba/smb-shares.conf.m4 >> /etc/samba/smb-shares.conf cf_tmpfile=`tempfile -p cf` |