Skip to content

Commit 91728dc

Browse files
committed
format password change dialog
1 parent 49359a6 commit 91728dc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/set.password.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [ ${#newPassword} -eq 0 ]; then
3535
--insecure --passwordbox "
3636
Set a new password for the users:
3737
'joinmarket' and 'root' $piUser
38-
use at least 8 characters" 11 56 2>$_temp
38+
Use at least 8 characters." 11 56 2>$_temp
3939

4040
# get user input
4141
password1=$( cat $_temp )
@@ -46,8 +46,8 @@ use at least 8 characters" 11 56 2>$_temp
4646
--backtitle "JoininBox - Password Change"\
4747
--title "Confirm Password Change"\
4848
--insecure --passwordbox "
49-
Re-enter the new password:
50-
(This will be required to login via SSH)
49+
Confirm the new password.
50+
This will be required to login via SSH.
5151
" 11 56 2>$_temp
5252

5353
# get user input
@@ -56,7 +56,7 @@ Re-enter the new password:
5656

5757
# check if passwords match
5858
if [ "${password1}" != "${password2}" ]; then
59-
DIALOGRC=.dialogrc.onerror dialog \
59+
DIALOGRC=/home/joinmarket/.dialogrc.onerror dialog \
6060
--backtitle "JoininBox - Password Change" \
6161
--msgbox "FAIL -> Passwords don't match\nPlease try again ..." 6 56
6262
sudo /home/joinmarket/set.password.sh
@@ -65,7 +65,7 @@ Re-enter the new password:
6565

6666
# password zero
6767
if [ ${#password1} -eq 0 ]; then
68-
DIALOGRC=.dialogrc.onerror dialog \
68+
DIALOGRC=/home/joinmarket/.dialogrc.onerror dialog \
6969
--backtitle "JoininBox - Password Change" \
7070
--msgbox "FAIL -> Password cannot be empty\nPlease try again ..." 6 56
7171
sudo /home/joinmarket/set.password.sh
@@ -74,7 +74,7 @@ Re-enter the new password:
7474

7575
# password longer than 8
7676
if [ ${#password1} -lt 8 ]; then
77-
DIALOGRC=.dialogrc.onerror dialog \
77+
DIALOGRC=/home/joinmarket/.dialogrc.onerror dialog \
7878
--backtitle "JoininBox - Password Change" \
7979
--msgbox "FAIL -> Password length under 8\nPlease try again ..." 6 56
8080
sudo /home/joinmarket/set.password.sh

0 commit comments

Comments
 (0)