|
|
@ -43,7 +43,6 @@ def main():
|
|
|
|
global app
|
|
|
|
global app
|
|
|
|
|
|
|
|
|
|
|
|
datastore_path = None
|
|
|
|
datastore_path = None
|
|
|
|
do_cleanup = False
|
|
|
|
|
|
|
|
host = ''
|
|
|
|
host = ''
|
|
|
|
ipv6_enabled = False
|
|
|
|
ipv6_enabled = False
|
|
|
|
port = os.environ.get('PORT') or 5000
|
|
|
|
port = os.environ.get('PORT') or 5000
|
|
|
@ -91,10 +90,6 @@ def main():
|
|
|
|
logger.success("Enabling IPv6 listen support")
|
|
|
|
logger.success("Enabling IPv6 listen support")
|
|
|
|
ipv6_enabled = True
|
|
|
|
ipv6_enabled = True
|
|
|
|
|
|
|
|
|
|
|
|
# Cleanup (remove text files that arent in the index)
|
|
|
|
|
|
|
|
if opt == '-c':
|
|
|
|
|
|
|
|
do_cleanup = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create the datadir if it doesnt exist
|
|
|
|
# Create the datadir if it doesnt exist
|
|
|
|
if opt == '-C':
|
|
|
|
if opt == '-C':
|
|
|
|
create_datastore_dir = True
|
|
|
|
create_datastore_dir = True
|
|
|
|