You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
327 B
12 lines
327 B
#!/usr/bin/env sh
|
|
cd "`dirname $0`"
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Usage : ./passwd.sh NEW_PASSWORD"
|
|
exit 2
|
|
fi
|
|
|
|
(./protectedPostApiCall.sh "ConfigAccounts_p.html" "setAdmin=&adminuser=admin&adminpw1=$1&adminpw2=$1&access=" && \
|
|
echo "Password for User Name 'admin' set to '$1'") || \
|
|
(echo "Password setting failed" && \
|
|
exit 1) |