Skip to content

Commit

Permalink
Updated scripts for windows server 5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
lins05 committed May 31, 2016
1 parent 94a75d8 commit 2323fd5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
24 changes: 24 additions & 0 deletions scripts/upgrade/win32/py/upgrade_5.0_5.1.py
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()
2 changes: 1 addition & 1 deletion scripts/upgrade/win32/py/upgrade_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def ensure_server_not_running():
except ccnet.NetworkError:
pass
else:
raise Exception('Seafile server is running! You must turn it off before gc!')
raise Exception('Seafile server is running! You must turn it off before running this script!')


read_seafserv_dir()
4 changes: 4 additions & 0 deletions scripts/upgrade/win32/upgrade_5.0_5.1.bat
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
2 changes: 2 additions & 0 deletions server/seaf-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,9 @@ main (int argc, char **argv)

load_history_config ();

#ifndef WIN32
set_syslog_config (seaf->config);
#endif

g_free (seafile_dir);
g_free (logfile);
Expand Down

0 comments on commit 2323fd5

Please sign in to comment.