mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-12 23:07:22 +02:00
Check that we're not root before running. Not for security issues, but just because it causes so many problems with user databases and whatnot.
This commit is contained in:
parent
af442c8313
commit
a8554a0ea3
@ -1,12 +1,17 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
if os.name == 'posix':
|
||||||
|
if os.getuid() == 0 or os.geteuid() == 0:
|
||||||
|
sys.stderr.write('Please, don\'t run this as root.\n')
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
|
||||||
import fix
|
import fix
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
import sets
|
import sets
|
||||||
import pydoc
|
import pydoc
|
||||||
import pprint
|
import pprint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user