forked from indymedia/epicyon
Fix daemon
parent
d95ebd9439
commit
0350b9e33b
|
@ -329,6 +329,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.lastGET=currTimeGET
|
self.server.lastGET=currTimeGET
|
||||||
self.server.GETbusy=True
|
self.server.GETbusy=True
|
||||||
|
|
||||||
|
#print('Content-type: '+self.headers['Accept'])
|
||||||
|
|
||||||
if not self._permittedDir(self.path):
|
if not self._permittedDir(self.path):
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: GET Not permitted')
|
print('DEBUG: GET Not permitted')
|
||||||
|
@ -921,9 +923,6 @@ def runDaemon(clientToServer: bool,baseDir: str,domain: str, \
|
||||||
if not os.path.isdir(baseDir+'/accounts/inbox@'+domain):
|
if not os.path.isdir(baseDir+'/accounts/inbox@'+domain):
|
||||||
print('Creating shared inbox: inbox@'+domain)
|
print('Creating shared inbox: inbox@'+domain)
|
||||||
createSharedInbox(baseDir,'inbox',domain,port,httpPrefix)
|
createSharedInbox(baseDir,'inbox',domain,port,httpPrefix)
|
||||||
print('See config.json for the password. You can remove the password from config.json after moving it elsewhere.')
|
|
||||||
adminPassword=createPassword(10)
|
|
||||||
setConfigParam(baseDir,'adminPassword',adminPassword)
|
|
||||||
|
|
||||||
print('Creating inbox queue')
|
print('Creating inbox queue')
|
||||||
httpd.thrInboxQueue= \
|
httpd.thrInboxQueue= \
|
||||||
|
|
|
@ -199,7 +199,7 @@ parser.add_argument("--followersonly", type=str2bool, nargs='?', \
|
||||||
const=True, default=True, \
|
const=True, default=True, \
|
||||||
help="Send to followers only")
|
help="Send to followers only")
|
||||||
parser.add_argument("--followerspending", type=str2bool, nargs='?', \
|
parser.add_argument("--followerspending", type=str2bool, nargs='?', \
|
||||||
const=True, default=True, \
|
const=True, default=False, \
|
||||||
help="Show a list of followers pending")
|
help="Show a list of followers pending")
|
||||||
parser.add_argument('--approve', dest='approve', type=str,default=None, \
|
parser.add_argument('--approve', dest='approve', type=str,default=None, \
|
||||||
help='Approve a follow request')
|
help='Approve a follow request')
|
||||||
|
|
Loading…
Reference in New Issue