osuAkatsuki/bancho.py

fix: remove linux-specific code

7mochi opened this issue · 0 comments

7mochi commented

Some examples:

bancho.py/app/utils.py

Lines 411 to 422 in 92a4e1c

if os.geteuid() == 0:
log(
"It is not recommended to run bancho.py as root, especially in production..",
Ansi.LYELLOW,
)
if app.settings.DEVELOPER_MODE:
log(
"The risk is even greater with features "
"such as config.advanced enabled.",
Ansi.LRED,
)

if os.geteuid() == 0:
log(
"Running the server with root privileges is not recommended.",
Ansi.LRED,
)

with open("/proc/cpuinfo") as f: