Browse Source

messages

pull/2565/head
Daniel Gibbs 6 years ago
parent
commit
6a8cd82a83
  1. 8
      lgsm/functions/command_ts3_server_pass.sh

8
lgsm/functions/command_ts3_server_pass.sh

@ -19,11 +19,12 @@ fn_serveradmin_password_prompt(){
fi fi
fn_script_log_info "Initiating ${gamename} ServerAdmin password change" fn_script_log_info "Initiating ${gamename} ServerAdmin password change"
read -rp "Enter new password: " newpassword read -rp "Enter new password: " newpassword
fn_print_info_nl "Changing password"
fn_script_log_info "Changing password"
} }
fn_serveradmin_password_set(){ fn_serveradmin_password_set(){
fn_print_info_nl "Starting "
fn_script_log_info "Starting server with new password"
# Start server in "new password mode". # Start server in "new password mode".
ts3serverpass="1" ts3serverpass="1"
exitbypass="1" exitbypass="1"
@ -35,6 +36,7 @@ fn_serveradmin_password_set(){
# Running functions. # Running functions.
check.sh check.sh
fn_serveradmin_password_prompt fn_serveradmin_password_prompt
check_status.sh check_status.sh
if [ "${status}" != "0" ]; then if [ "${status}" != "0" ]; then
# Stop any running server. # Stop any running server.
@ -43,8 +45,6 @@ if [ "${status}" != "0" ]; then
fn_serveradmin_password_set fn_serveradmin_password_set
parms="serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1" parms="serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1"
ts3serverpass="0" ts3serverpass="0"
fn_print_info_nl "Restarting server normally"
fn_script_log_info "Restarting server normally"
command_restart.sh command_restart.sh
else else
fn_serveradmin_password_set fn_serveradmin_password_set

Loading…
Cancel
Save