You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
3.5 KiB

  1. diff -rupN seafile-server-5.1.1.orig/scripts/seaf-fsck.sh seafile-server-5.1.1/scripts/seaf-fsck.sh
  2. --- seafile-server-5.1.1.orig/scripts/seaf-fsck.sh 2016-04-21 11:05:26.000000000 +0200
  3. +++ seafile-server-5.1.1/scripts/seaf-fsck.sh 2016-04-22 09:10:13.075581325 +0200
  4. @@ -7,7 +7,7 @@ INSTALLPATH=$(dirname "${SCRIPT}")
  5. TOPDIR=$(dirname "${INSTALLPATH}")
  6. default_ccnet_conf_dir=${TOPDIR}/ccnet
  7. default_conf_dir=${TOPDIR}/conf
  8. -seaf_fsck=${INSTALLPATH}/seafile/bin/seaf-fsck
  9. +seaf_fsck=/usr/bin/seaf-fsck
  10. export PATH=${INSTALLPATH}/seafile/bin:$PATH
  11. export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH}
  12. diff -rupN seafile-server-5.1.1.orig/scripts/seaf-gc.sh seafile-server-5.1.1/scripts/seaf-gc.sh
  13. --- seafile-server-5.1.1.orig/scripts/seaf-gc.sh 2016-04-21 11:05:26.000000000 +0200
  14. +++ seafile-server-5.1.1/scripts/seaf-gc.sh 2016-04-22 09:10:27.211581999 +0200
  15. @@ -7,7 +7,7 @@ INSTALLPATH=$(dirname "${SCRIPT}")
  16. TOPDIR=$(dirname "${INSTALLPATH}")
  17. default_ccnet_conf_dir=${TOPDIR}/ccnet
  18. default_conf_dir=${TOPDIR}/conf
  19. -seaf_gc=${INSTALLPATH}/seafile/bin/seafserv-gc
  20. +seaf_gc=/usr/bin/seafserv-gc
  21. seaf_gc_opts=""
  22. export PATH=${INSTALLPATH}/seafile/bin:$PATH
  23. diff -rupN seafile-server-5.1.1.orig/scripts/setup-seafile-mysql.sh seafile-server-5.1.1/scripts/setup-seafile-mysql.sh
  24. --- seafile-server-5.1.1.orig/scripts/setup-seafile-mysql.sh 2016-04-21 11:05:26.000000000 +0200
  25. +++ seafile-server-5.1.1/scripts/setup-seafile-mysql.sh 2016-04-22 09:11:50.083585953 +0200
  26. @@ -40,15 +40,10 @@ function check_python_executable() {
  27. function check_python_module () {
  28. module=$1
  29. name=$2
  30. - hint=$3
  31. printf " Checking python module: ${name} ... "
  32. if ! $PYTHON -c "import ${module}" 2>/dev/null 1>&2; then
  33. echo
  34. printf "\033[33m ${name} \033[m is not installed, Please install it first.\n"
  35. - if [[ "${hint}" != "" ]]; then
  36. - printf "${hint}"
  37. - echo
  38. - fi
  39. err_and_quit;
  40. fi
  41. echo -e "Done."
  42. @@ -70,14 +65,10 @@ function check_python () {
  43. if [[ $PYTHON == "python2.6" ]]; then
  44. py26="2.6"
  45. fi
  46. - hint="\nOn Debian/Ubntu: apt-get install python-setuptools\nOn CentOS/RHEL: yum install python${py26}-distribute"
  47. - check_python_module pkg_resources setuptools "${hint}"
  48. -
  49. - hint="\nOn Debian/Ubntu: apt-get install python-imaging\nOn CentOS/RHEL: yum install python${py26}-imaging"
  50. - check_python_module PIL python-imaging "${hint}"
  51. - hint='\nOn Debian/Ubuntu:\n\nsudo apt-get install python-mysqldb\n\nOn CentOS/RHEL:\n\nsudo yum install MySQL-python'
  52. - check_python_module MySQLdb python-mysqldb "${hint}"
  53. + check_python_module pkg_resources setuptools
  54. + check_python_module PIL python-imaging
  55. + check_python_module MySQLdb python-mysqldb
  56. fi
  57. echo
  58. }
  59. @@ -85,5 +76,6 @@ function check_python () {
  60. check_python;
  61. export PYTHON=$PYTHON
  62. +export PYTHONPATH="/usr/share/seafile/seafile-server/seahub/thirdpart:$PYTHONPATH"
  63. exec $PYTHON "$python_script"
  64. diff -rupN seafile-server-5.1.1.orig/scripts/sqlite2mysql.sh seafile-server-5.1.1/scripts/sqlite2mysql.sh
  65. --- seafile-server-5.1.1.orig/scripts/sqlite2mysql.sh 2016-04-21 11:05:26.000000000 +0200
  66. +++ seafile-server-5.1.1/scripts/sqlite2mysql.sh 2016-04-22 09:02:22.047558854 +0200
  67. @@ -1,4 +1,4 @@
  68. -#!/bin/sh
  69. +#!/bin/bash
  70. #
  71. # This shell script and corresponding sqlite2mysql.py are used to
  72. # migrate Seafile data from SQLite to MySQL.