Added a console command.

Which resumes the created screen session for a server. If the logged in
user executing the command is connected via SSH, then unless that user
is the server user, this command will (currently) fail, do to the way
screen works.
This commit is contained in:
Marcus Whybrow 2012-05-30 18:21:47 +01:00
parent cb9638bd22
commit fff509e91f

7
msm
View File

@ -1744,6 +1744,13 @@ main() {
fi fi
fi fi
;; ;;
console)
if server_is_running $id; then
as_user ${server_user_name[$1]} "screen -r ${server_screen_name[$1]}"
else
echo "Server \"${server_name[$id]}\" is not running."
fi
;;
*) *)
echo "Invalid command." echo "Invalid command."
;; ;;