-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated scripts for windows server 5.1.
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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('5.1.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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
cd /d %~dp0 | ||
set PYTHONPATH=%PYTHONPATH%;%~dp0\..\seahub\thirdpart | ||
start python py/upgrade_5.0_5.1.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters