mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Prevent privilege loading faillure from breaking the code in maxos
This commit is contained in:
parent
30cce72678
commit
c323d1bbc9
0
libs/__init__.py
Normal file
0
libs/__init__.py
Normal file
6
start.py
6
start.py
@ -5,6 +5,7 @@
|
|||||||
server run.
|
server run.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
import hashlib
|
import hashlib
|
||||||
import thread
|
import thread
|
||||||
@ -18,7 +19,10 @@ from src import settings, setup_path, Paste
|
|||||||
|
|
||||||
setup_path()
|
setup_path()
|
||||||
|
|
||||||
from privilege import drop_privileges_permanently, coerce_user, coerce_group
|
try:
|
||||||
|
from privilege import drop_privileges_permanently, coerce_user, coerce_group
|
||||||
|
except AttributeError:
|
||||||
|
pass # privilege does't work on several plateform
|
||||||
|
|
||||||
from bottle import (Bottle, route, run, abort,
|
from bottle import (Bottle, route, run, abort,
|
||||||
static_file, debug, view, request)
|
static_file, debug, view, request)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user