forked from expo/troggle
Add check to avoid running databaseReset as root accidentally
This commit is contained in:
parent
8b74ff4bb6
commit
227120fd57
@ -6,6 +6,10 @@ import timeit
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
import settings
|
import settings
|
||||||
|
if os.geteuid() == 0:
|
||||||
|
print("This script should be run as expo not root - quitting")
|
||||||
|
exit()
|
||||||
|
|
||||||
os.environ['PYTHONPATH'] = settings.PYTHON_PATH
|
os.environ['PYTHONPATH'] = settings.PYTHON_PATH
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user