Univention Bugzilla – Attachment 5285 Details for
Bug 31784
ucc-image-set-join-information doesn't accept password as an argument
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add password parameter
add_password_parameter.patch (text/plain), 1.20 KB, created by
Jan Christoph Ebersbach
on 2013-06-20 16:40:06 CEST
(
hide
)
Description:
Add password parameter
Filename:
MIME Type:
Creator:
Jan Christoph Ebersbach
Created:
2013-06-20 16:40:06 CEST
Size:
1.20 KB
patch
obsolete
>diff --git a/ucc-image-toolkit/ucc-image-set-join-information b/ucc-image-toolkit/ucc-image-set-join-information >index 3c11c69..4a2a5a4 100755 >--- a/ucc-image-toolkit/ucc-image-set-join-information >+++ b/ucc-image-toolkit/ucc-image-set-join-information >@@ -69,9 +69,10 @@ usage () { > IMAGE="" > ASK_USERNAME=true > ASK_DOMAIN=true >+ASK_PASSWORD=true > > # options >-while getopts 'i:u:d:h' OPTION; do >+while getopts 'i:u:d:p:h' OPTION; do > case "$OPTION" in > i) > IMAGE="$OPTARG" >@@ -84,6 +85,10 @@ while getopts 'i:u:d:h' OPTION; do > ASK_DOMAIN=false > domain="$OPTARG" > ;; >+ p) >+ ASK_PASSWORD=false >+ password="$OPTARG" >+ ;; > > h) > usage >@@ -130,14 +135,16 @@ if [ -z "$username" ]; then > exit 1 > fi > >-# ask for password >-read -s -p "Password:" password >-echo "" >-read -s -p "Verify password:" passwordV2 >-echo "" >-if [ ! "$password" = "$passwordV2" ]; then >- echo "Sorry, passwords do not match." | STDERR >- exit 1 >+if $ASK_PASSWORD; then >+ # ask for password >+ read -s -p "Password:" password >+ echo "" >+ read -s -p "Verify password:" passwordV2 >+ echo "" >+ if [ ! "$password" = "$passwordV2" ]; then >+ echo "Sorry, passwords do not match." | STDERR >+ exit 1 >+ fi > fi > > if [ -z "$password" ]; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31784
: 5285