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.

40 lines
1.7 KiB

  1. diff -rupN seafile-3.1.7-server.orig/scripts/seaf-gc.sh seafile-3.1.7-server/scripts/seaf-gc.sh
  2. --- seafile-3.1.7-server.orig/scripts/seaf-gc.sh 2014-10-16 05:30:04.000000000 +0200
  3. +++ seafile-3.1.7-server/scripts/seaf-gc.sh 2014-12-13 00:51:12.919136978 +0100
  4. @@ -6,11 +6,10 @@ SCRIPT=$(readlink -f "$0")
  5. INSTALLPATH=$(dirname "${SCRIPT}")
  6. TOPDIR=$(dirname "${INSTALLPATH}")
  7. default_ccnet_conf_dir=${TOPDIR}/ccnet
  8. -seaf_gc=${INSTALLPATH}/seafile/bin/seafserv-gc
  9. +seaf_gc=/usr/bin/seafserv-gc
  10. seaf_gc_opts=""
  11. -export PATH=${INSTALLPATH}/seafile/bin:$PATH
  12. -export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH}
  13. +export PYTHONPATH="/usr/share/seafile/seafile-server/seahub/thirdpart:$PYTHONPATH"
  14. script_name=$0
  15. function usage () {
  16. @@ -78,9 +77,7 @@ function run_seaf_gc () {
  17. echo "Starting seafserv-gc, please wait ..."
  18. - LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_gc} \
  19. - -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" \
  20. - ${seaf_gc_opts}
  21. + ${seaf_gc} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" ${seaf_gc_opts}
  22. echo "seafserv-gc run done"
  23. echo
  24. diff -rupN seafile-3.1.7-server.orig/scripts/setup-seafile-mysql.sh seafile-3.1.7-server/scripts/setup-seafile-mysql.sh
  25. --- seafile-3.1.7-server.orig/scripts/setup-seafile-mysql.sh 2014-10-16 05:30:04.000000000 +0200
  26. +++ seafile-3.1.7-server/scripts/setup-seafile-mysql.sh 2014-12-13 00:51:49.242172631 +0100
  27. @@ -9,6 +9,8 @@ set -e
  28. SCRIPT=$(readlink -f "$0")
  29. INSTALLPATH=$(dirname "${SCRIPT}")
  30. +export PYTHONPATH="/usr/share/seafile/seafile-server/seahub/thirdpart:$PYTHONPATH"
  31. +
  32. cd "$INSTALLPATH"
  33. python_script=setup-seafile-mysql.py