From fe7016a77bc39f2ef03465d83dbc58545ab6b3c3 Mon Sep 17 00:00:00 2001 From: Hulk Date: Tue, 11 Jun 2019 17:27:04 +0800 Subject: [PATCH] fix if not set the time_zone the seahub will start error. --- scripts/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py index 68b3336..decd5e9 100755 --- a/scripts/bootstrap.py +++ b/scripts/bootstrap.py @@ -154,7 +154,7 @@ def init_seafile_server(): } COMPRESS_CACHE_BACKEND = 'locmem'""") fp.write('\n') - fp.write("TIME_ZONE = '{time_zone}'".format(time_zone=os.getenv('TIME_ZONE'))) + fp.write("TIME_ZONE = '{time_zone}'".format(time_zone=os.getenv('TIME_ZONE',default='Etc/UTC'))) fp.write('\n') fp.write('FILE_SERVER_ROOT = "{proto}://{domain}/seafhttp"'.format(proto=proto, domain=domain)) fp.write('\n')