forked from indymedia/epicyon
Only run the daemon if this is the main module
parent
605be761ff
commit
ed2aafc8cf
37
epicyon.py
37
epicyon.py
|
@ -1819,21 +1819,22 @@ if YTDomain:
|
||||||
if setTheme(baseDir, themeName):
|
if setTheme(baseDir, themeName):
|
||||||
print('Theme set to ' + themeName)
|
print('Theme set to ' + themeName)
|
||||||
|
|
||||||
runDaemon(args.blogsinstance, args.mediainstance,
|
if __name__ == "__main__":
|
||||||
args.maxRecentPosts,
|
runDaemon(args.blogsinstance, args.mediainstance,
|
||||||
not args.nosharedinbox,
|
args.maxRecentPosts,
|
||||||
registration, args.language, __version__,
|
not args.nosharedinbox,
|
||||||
instanceId, args.client, baseDir,
|
registration, args.language, __version__,
|
||||||
domain, onionDomain, i2pDomain,
|
instanceId, args.client, baseDir,
|
||||||
args.YTReplacementDomain,
|
domain, onionDomain, i2pDomain,
|
||||||
port, proxyPort, httpPrefix,
|
args.YTReplacementDomain,
|
||||||
federationList, args.maxMentions,
|
port, proxyPort, httpPrefix,
|
||||||
args.maxEmoji, args.authenticatedFetch,
|
federationList, args.maxMentions,
|
||||||
args.noreply, args.nolike, args.nopics,
|
args.maxEmoji, args.authenticatedFetch,
|
||||||
args.noannounce, args.cw, ocapAlways,
|
args.noreply, args.nolike, args.nopics,
|
||||||
proxyType, args.maxReplies,
|
args.noannounce, args.cw, ocapAlways,
|
||||||
args.domainMaxPostsPerDay,
|
proxyType, args.maxReplies,
|
||||||
args.accountMaxPostsPerDay,
|
args.domainMaxPostsPerDay,
|
||||||
args.allowdeletion, debug, False,
|
args.accountMaxPostsPerDay,
|
||||||
args.instanceOnlySkillsSearch, [],
|
args.allowdeletion, debug, False,
|
||||||
args.blurhash, not args.noapproval)
|
args.instanceOnlySkillsSearch, [],
|
||||||
|
args.blurhash, not args.noapproval)
|
||||||
|
|
Loading…
Reference in New Issue