This commit is contained in:
@@ -55,11 +55,13 @@ def perform_upgrade_command(version,mysql=False,yes=True):
|
||||
scripts = os.path.join(seaf_home,"seafile-server-%s" % version, "upgrade")
|
||||
current = map(lambda x: int(x), current_version().split("."))
|
||||
target = map(lambda x: int(x), version.split("."))
|
||||
print len(current) == 1 and current[0] == 0
|
||||
if len(current) == 1 and current[0] == 0: #Not installed
|
||||
print("Running installer.")
|
||||
if not call(["seafile-server","setup", os.path.join(seaf_home,"seafile-server-%s" % version) ],stdout=sys.stdout, stdin=sys.stdin):
|
||||
sys.exit(1)
|
||||
#print("Running installer.")
|
||||
#if not call(["seafile-server","setup", os.path.join(seaf_home,"seafile-server-%s" % version) ],stdout=sys.stdout, stdin=sys.stdin):
|
||||
# sys.exit(1)
|
||||
crumb = open(seaf_home + "/ahead", 'w')
|
||||
crumb.write(os.path.join(seaf_home,"seafile-server-%s" % version))
|
||||
crumb.close()
|
||||
sys.exit(126)
|
||||
script_re = "^upgrade_(\d+).(\d+)_(\d+).(\d+)\.sh$"
|
||||
run = []
|
||||
@@ -93,6 +95,7 @@ def download(url, version):
|
||||
return dest
|
||||
else:
|
||||
print("Download failed")
|
||||
sys.exit(1)
|
||||
return 0
|
||||
|
||||
def install_command(url, version):
|
||||
|
Reference in New Issue
Block a user