Shellcheck compliance, not that it is important right now
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
printf "Password for 'rmps' DB user: "
|
||||
read -rs dbpass
|
||||
printf "\nEnter the first RMPS username: "
|
||||
printf "\\nEnter the first RMPS username: "
|
||||
read -r username
|
||||
printf "Full name for the new user '%s': " "${username}"
|
||||
read -r fullname
|
||||
printf "Password for RMPS user '%s': " "${username}"
|
||||
read -rs newuser_pass
|
||||
printf "\nEnter e-mail for the new user: "
|
||||
printf "\\nEnter e-mail for the new user: "
|
||||
read -r email
|
||||
printf "Initializing DB... "
|
||||
salt=$(head -c 32 /dev/urandom|sha1sum|head -c 32)
|
||||
@@ -24,4 +24,4 @@ mysql -u rmps --password="$dbpass" -e "\
|
||||
set @passHash=\"$pass_hash\";\
|
||||
set @passSalt=\"$salt\";\
|
||||
$(cat init_rmps_db.sql)"
|
||||
printf "Done!\n"
|
||||
printf "Done!\\n"
|
||||
|
||||
Reference in New Issue
Block a user