From f20cc2cf7eeb0e4ce6a8358af156b7b23081392e Mon Sep 17 00:00:00 2001 From: dimman Date: Tue, 14 Mar 2017 22:16:52 +0100 Subject: [PATCH] Use a random password by default, not 'changeme' 12 character random password is generated unless user decides to set his/her own. --- src/install_nquakesv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install_nquakesv.sh b/src/install_nquakesv.sh index db4d03d..684bc82 100644 --- a/src/install_nquakesv.sh +++ b/src/install_nquakesv.sh @@ -102,7 +102,7 @@ read email [ ! -z "$email" ] || email=$defaultemail # Rcon -defaultrcon="changeme" +defaultrcon="$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};echo)" printf "What should the rcon password be? [$defaultrcon]: " read rcon [ ! -z "$rcon" ] || { @@ -116,7 +116,7 @@ read rcon if [ "$qtv" = "y" ] then # Qtv password - defaultqtvpass="changeme" + defaultqtvpass="$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};echo)" printf "What should the qtv admin password be? [$defaultqtvpass]: " read qtvpass [ ! -z "$qtvpass" ] || {