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.

73 lines
2.6 KiB

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