Make the Redis socket configurable
This commit is contained in:
6
main.py
6
main.py
@@ -3,8 +3,6 @@ import redis
|
||||
from utils.loaders.command_loader import loadCommands
|
||||
from utils.logging.log import *
|
||||
|
||||
r = redis.StrictRedis(unix_socket_path='/tmp/redis.sock', db=0)
|
||||
|
||||
configPath = "conf/"
|
||||
certPath = "cert/"
|
||||
|
||||
@@ -49,5 +47,9 @@ def initConf():
|
||||
loadConf(i)
|
||||
|
||||
def initMain():
|
||||
global r
|
||||
initConf()
|
||||
loadCommands(register)
|
||||
r = redis.StrictRedis(unix_socket_path=config["RedisSocket"], db=0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user