summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/system/login/user/node.def5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def
index d05ac373..a04e990f 100644
--- a/templates/system/login/user/node.def
+++ b/templates/system/login/user/node.def
@@ -16,7 +16,10 @@ if [ x$(@) == xroot ]; then \
fi && \
if mkdir /tmp/vyatta-delete-system-login-user-$(@).\\\$PPID >& /dev/null; \
then \
- sudo /opt/vyatta/sbin/vyatta_update_login_user.pl -d '$(@)'; \
+ if ! sudo /opt/vyatta/sbin/vyatta_update_login_user.pl -d '$(@)'; then \
+ rm -rf /tmp/vyatta-delete-system-login-user-$(@).\\\$PPID; \
+ exit 1; \
+ fi; \
else \
exit 1; \
fi"