Add help for redirecting password via file
This commit is contained in:
parent
2682646312
commit
59abb0ceb9
@ -22,7 +22,8 @@ cat << HELP
|
|||||||
Script to update the password of a user.
|
Script to update the password of a user.
|
||||||
The password is either
|
The password is either
|
||||||
- entered interactively
|
- entered interactively
|
||||||
- redirected from STDIN via ${MY_NAME} ... <<< 'newpassword'
|
- redirected from STDIN via ${MY_NAME} ... <<< 'newpassword'
|
||||||
|
- redirected from a file via ${MY_NAME} ... < /path/to/file-with-password
|
||||||
|
|
||||||
Usage: $1 [OPTION]
|
Usage: $1 [OPTION]
|
||||||
Mandatory:
|
Mandatory:
|
||||||
@ -127,4 +128,4 @@ done
|
|||||||
check_if_root
|
check_if_root
|
||||||
check_user
|
check_user
|
||||||
get_password
|
get_password
|
||||||
change_user_password
|
change_user_password
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user