handle non existent env
This commit is contained in:
parent
2710feb490
commit
e96bd34bf5
@ -82,7 +82,7 @@ def install_command(url):
|
|||||||
if len(current) == 1: current = current[0]
|
if len(current) == 1: current = current[0]
|
||||||
else: current = "0.0.0"
|
else: current = "0.0.0"
|
||||||
print("Upgrading from: %s -> %s" % (current, target_version))
|
print("Upgrading from: %s -> %s" % (current, target_version))
|
||||||
perform_upgrade_command(target_version,mysql=(os.environ["SEAF_MYSQL"] or False))
|
perform_upgrade_command(target_version,mysql=("SEAF_MYSQL" in os.environ and os.environ["SEAF_MYSQL"]))
|
||||||
if len(os.listdir(tmp)) != 0:
|
if len(os.listdir(tmp)) != 0:
|
||||||
print("Failed to unpack update")
|
print("Failed to unpack update")
|
||||||
os.rmdir(tmp)
|
os.rmdir(tmp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user