Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Commit 027e59a

Browse files
committed
Update password length, fix echo
1 parent ed8974e commit 027e59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lnmp.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# 声明变量
2020
envType='master'
2121
ipAddress=$(ip addr | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -E -v "^192\\.168|^172\\.1[6-9]\\.|^172\\.2[0-9]\\.|^172\\.3[0-2]\\.|^10\\.|^127\\.|^255\\." | head -n 1) || '0.0.0.0'
22-
mysqlPWD=$(echo -n ${RANDOM} | md5sum | sed "s/ .*//" | cut -b -8)
22+
mysqlPWD=$(echo -n ${RANDOM} | md5sum | cut -b -16)
2323

2424
mysqlUrl='https://repo.mysql.com'
2525
mariaDBUrl='https://yum.mariadb.org'
@@ -469,7 +469,7 @@ clear
469469
echo '| |___ | |\ | | | | | | __/ '
470470
echo '|_____| |_| \_| |_| |_| |_| '
471471
echo ''
472-
echo -e 'For more details see \033[4mhttps://git.io/lnmp\033[0m'
472+
echo -e "For more details see \033[4mhttps://git.io/lnmp\033[0m"
473473
echo ''
474474
showNotice 'Please select your operation:'
475475
echo '1) Install'

0 commit comments

Comments
 (0)