bug(ts3server): change-password does not apply the new password

Đang mở
#5,237 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
66/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, shell
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start with command_ts3_server_pass.sh, where ts3serverpass and parms are set before restart, then compare against the current start command that reads startparameters instead. Read the referenced refactor and start-parameter changes to see how one-off start arguments are passed. Done means change-password either applies serveradmin_password through startparameters for that start or the command is removed, verified manually against a TeamSpeak 3 server.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

engine: null game: Teamspeak 3

Description

./<server> change-password (command_ts3_server_pass.sh) never applies the new ServerAdmin password.

The module sets ts3serverpass="1" and parms="serveradmin_password=... inifile=..." and then restarts the server. Nothing reads either variable any more:

  • parms was renamed to startparameters (#3151, #3340). The start command only uses startparameters.
  • The code that read ts3serverpass was removed in "refactor: remove legacy code" (069e3bd4e).

So the server restarts normally and the module still prints "New password applied".

Possible fixes

  • Pass serveradmin_password=... through startparameters for the one start, then restore it.
  • Or remove the command if it is no longer used.

Needs a TeamSpeak 3 server to test.

Found while sweeping for typos in #5236.

Ngôn ngữ chính
Shell
Star
4.9k
Fork
866
Merge trung bình
17 giờ 58 phút
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.