mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01: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
|
||||
|
||||
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 fix
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import sets
|
||||
import pydoc
|
||||
import pprint
|
||||
|
Loading…
Reference in New Issue
Block a user