Extend Help
This commit is contained in:
parent
86d6bf814f
commit
fc114004be
@ -5,6 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
USER_TO_CHANGE=""
|
USER_TO_CHANGE=""
|
||||||
NEW_PASSWORD=""
|
NEW_PASSWORD=""
|
||||||
|
MY_NAME=$(basename "$0")
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -18,7 +19,10 @@ die() {
|
|||||||
show_help() {
|
show_help() {
|
||||||
cat << HELP
|
cat << HELP
|
||||||
|
|
||||||
Script to update the password of a user. Either
|
Script to update the password of a user.
|
||||||
|
The password is either
|
||||||
|
- entered interactively
|
||||||
|
- redirected from STDIN via ${MY_NAME} ... <<< 'newpassword'
|
||||||
|
|
||||||
Usage: $1 [OPTION]
|
Usage: $1 [OPTION]
|
||||||
Mandatory:
|
Mandatory:
|
||||||
@ -123,4 +127,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