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.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
import hashlib
|
||||
import thread
|
||||
@ -18,7 +19,10 @@ from src import settings, setup_path, Paste
|
||||
|
||||
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,
|
||||
static_file, debug, view, request)
|
||||
|
Loading…
Reference in New Issue
Block a user