Browse Source

update random

pull/4200/head
Daniel Gibbs 3 years ago
parent
commit
7bdfc714f2
No known key found for this signature in database GPG Key ID: 7CA38B43F78F12FE
  1. 2
      lgsm/functions/install_config.sh

2
lgsm/functions/install_config.sh

@ -64,7 +64,7 @@ fn_default_config_local() {
# PASSWORD to random password # PASSWORD to random password
fn_set_config_vars() { fn_set_config_vars() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
random=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 8 | xargs) random=$(echo $RANDOM | md5sum | head -c 8)
servername="LinuxGSM" servername="LinuxGSM"
rconpass="admin${random}" rconpass="admin${random}"
echo -e "changing hostname." echo -e "changing hostname."

Loading…
Cancel
Save