mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Applied the 'script /dev/null' fix to the screen -r command in the command_server_console() function.
This commit is contained in:
parent
ce0ea447a4
commit
66c60976b5
2
init/msm
2
init/msm
@ -3157,7 +3157,7 @@ command_server_cmdlog() {
|
||||
command_server_console() {
|
||||
if server_is_running "$1"; then
|
||||
server_property "$1" USERNAME
|
||||
as_user "${SERVER_USERNAME[$1]}" "screen -r ${SERVER_SCREEN_NAME[$1]}"
|
||||
as_user "${SERVER_USERNAME[$1]}" "script -q -c 'screen -r ${SERVER_SCREEN_NAME[$1]}' /dev/null"
|
||||
else
|
||||
error_exit SERVER_STOPPED "Server \"${SERVER_NAME[$1]}\" is not running."
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user