summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-09-05 14:04:30 -0700
committerJohn Southworth <john.southworth@vyatta.com>2012-09-05 14:04:30 -0700
commite2811040b1b6bf1e94f1878ade872dfef3cdf0ea (patch)
treecbcaf56cc575695333b0df88ef45eaf47c956e8d /templates/system
parent27f5c1063dc835de4d0b6ea2052e6adef72a264f (diff)
downloadvyatta-cfg-system-e2811040b1b6bf1e94f1878ade872dfef3cdf0ea.tar.gz
vyatta-cfg-system-e2811040b1b6bf1e94f1878ade872dfef3cdf0ea.zip
Bugfix 8326
Fix password change script save function to work as it does in vyattacfg. Fix empty substitution on 'plaintext-password ""' causing script error.
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/login/user/node.tag/authentication/plaintext-password/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
index 5f1d09ed..84fd972c 100644
--- a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
@@ -5,7 +5,7 @@ help: Plaintext password for encryption
# "encrypted-password" to an empty string (which actually allows login without
# password).
syntax:expression: exec "\
- if [[ -e /opt/vyatta/etc/.nofirstpasswd && $VAR(@) == 'vyatta' ]]; then \
+ if [[ -e /opt/vyatta/etc/.nofirstpasswd && '$VAR(@)' == 'vyatta' ]]; then \
echo 'Invalid password [$VAR(@)]';\
exit 1;\
fi"