[entropy.server] allow running Entropy Server as user but raise warning
This commit is contained in:
@@ -314,7 +314,8 @@ class Server(Singleton, TextInterface):
|
||||
self.__instance_destroyed = False
|
||||
if etpConst['uid'] != 0:
|
||||
mytxt = _("Entropy Server interface must be run as root")
|
||||
raise PermissionDenied("PermissionDenied: %s" % (mytxt,))
|
||||
import warnings
|
||||
warnings.warn(mytxt)
|
||||
|
||||
# settings
|
||||
self.SystemSettings = SystemSettings()
|
||||
|
||||
Reference in New Issue
Block a user