mirror of
https://github.com/greenseeker/t2server.git
synced 2026-01-19 19:24:46 +00:00
32 lines
1.4 KiB
Python
Executable file
32 lines
1.4 KiB
Python
Executable file
#!/usr/bin/env -S python3 -B
|
|
from t2support import color, release_file
|
|
from os.path import isfile
|
|
|
|
# Get the version from the release file
|
|
if isfile(release_file):
|
|
with open(release_file, 'r') as rf:
|
|
version = rf.read().rstrip()
|
|
else:
|
|
version = None
|
|
|
|
if version: print(f"{color.DC}t2server {version}")
|
|
|
|
print(f"\n{color.DC}The follow commands can be used to manage your Tribes 2 server:")
|
|
|
|
print(f"""\n{color.BW}systemctl <action> t2server{color.DC}: The t2server service can be managed with the
|
|
standard Linux systemctl command. See 'man systemctl' for more info.""")
|
|
|
|
print(f"""\n{color.BW}t2fixer{color.DC}: This command resets the owner and permissions on all files associated
|
|
with t2server. It's recommended to run this command any time you make changes
|
|
or add files (such as mods or map packs) to your server to ensure they can be
|
|
properly read and accessed. In the future, this command may also resolve other
|
|
common issues.""")
|
|
|
|
print(f"""\n{color.BW}t2remove{color.DC}: This command uninstalls t2server and removes most associated files.
|
|
Configuration and serverprefs files will be left alone.""")
|
|
|
|
print(f"\n{color.DC}Tribes 2 is installed in {color.BW}/opt/t2server{color.DC}.")
|
|
print(f"{color.DC}The {color.BW}/etc/t2server/config.yaml{color.DC} file holds basic service configuration values.")
|
|
print(f"{color.DC}The {color.BW}/etc/t2server/serverprefs{color.DC} directory holds your T2 serverprefs .cs files.")
|
|
|
|
print(color.X) |