1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-10-21 23:58:09 +00:00

Added scripts for windows server 6.0

This commit is contained in:
Shuai Lin
2016-12-23 16:22:20 +08:00
parent f654d77ee9
commit 28ff6970fa
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# coding: UTF-8
import shutil
import os
import traceback
from os.path import abspath, basename, exists, dirname, join
from upgrade_common import (install_path, seafserv_dir, ccnet_dir, seafile_dir,
upgrade_db, run_argv)
def main():
try:
upgrade_db('6.0.0')
except Exception, e:
traceback.print_exc()
print 'Error:\n', e
else:
print '\ndone\n'
finally:
print '\nprint ENTER to exit\n'
raw_input()
if __name__ == '__main__':
main()

View File

@@ -0,0 +1,4 @@
@echo off
cd /d %~dp0
set PYTHONPATH=%PYTHONPATH%;%~dp0\..\seahub\thirdpart
start python py/upgrade_5.1_6.0.py