You've already forked mysql-ubuntu
comment corrections only no code changes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Author : Allan Christensen
|
||||
# First Created : 08072021 (DD-MM-YYYY)
|
||||
@@ -28,7 +27,7 @@ usage () {
|
||||
printf -- "\nmysqlinstall\n\n"
|
||||
printf -- "Installs and configures MySQL on Ubuntu 24.04\n"
|
||||
printf -- "Note: Must be run as root or using sudo\n\n"
|
||||
printf -- "Root authentication = PASSWORD (no socket auth)\n\n"
|
||||
printf -- "Root authentication uses PASSWORD (no socket auth)\n\n"
|
||||
printf -- "Usage:\n"
|
||||
printf -- " sudo ./mysqlinstall -p <rootpassword>\n"
|
||||
printf -- " sudo ./mysqlinstall -h (help)\n\n"
|
||||
@@ -64,7 +63,7 @@ done
|
||||
if [[ -z "$rootpwd" ]]; then usage ; printf "\nERROR: Missing -p <rootpassword>\n\n" ; exit 1 ; fi
|
||||
|
||||
#
|
||||
# Password: disallow spaces and backslashes, warn about weak passwords
|
||||
# Password disallow spaces and backslashes
|
||||
#
|
||||
if [[ "$rootpwd" =~ [[:space:]] ]]; then
|
||||
printf "\nERROR: Password cannot contain spaces.\n\n"
|
||||
|
||||
Reference in New Issue
Block a user