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.

99 lines
2.8 KiB

seafile-server: Update to 7.1.2, revamp package * Package scripts that are shipped by upstream in their binary download * Includes setup scripts (setup-seafile.sh to use SQLite, setup-seafile-mysql.{sh,py} to use MySQL) and control scripts (seafile.sh, seahub.sh) * Does not include seafile-admin, which is not shipped in upstream's binary download. Combined with the fact that it hasn't been updated to Python 3 suggests the script has been abandoned. * Replace previous init scripts with a simplified script * Previous init scripts (seafile.init, seahub.init) were modified from older versions of seafile.sh and seahub.sh, but they haven't kept up with changes to upstream's scripts * New init script (seafile-server.init) start/stops both Seafile and Seahub (there is no need to control them separately) by calling upstream's control scripts * Replace previous package config file with new config file * Options in previous config file (seafile.conf) were mainly for using Seahub in FastCGI mode. FastCGI was deprecated in Django 1.7 and removed in 1.9; upstream's control script will only start Seahub using Gunicorn. (Options for Gunicorn including port number can be changed by editing /etc/seafile/conf/gunicorn.conf.py.) * New config file (seafile-server.config) has one option that controls where the Seafile/Seahub data directories are stored * Patch scripts/binaries to use standard, system-wide directory locations * Script files (wrappers for binaries) in /usr/bin * Binaries (not meant to be run directly by the user) in /usr/libexec * Config files in /etc/seafile * Pid/socket files in /var/run/seafile * Logs in /var/log/seafile * Include a new script to create the first admin account * With upstream's original scripts, the user is required to interactively create the first admin account when Seahub is started for the first time * The user will now use the new script (create-seafile-admin.sh) to create the first admin account after setup (using setup-seafile.sh or setup-seafile-mysql.sh) and before starting Seafile/Seahub * seahub.sh is patched to only check if there is at least one admin account and exit with an error if there is no admin account * Remove build config options and add seafile-server-fuse package * The console option controls whether the console window is shown when Seafile server is run on Windows. It has no use on Linux. * The fuse option controls whether seaf-fuse is built. (seaf-fuse is a FUSE implementation that allows the Seafile database/file system to be mounted to a local directory.) seaf-fuse is now always built and is available in a separate package (seafile-server-fuse). * Add myself as a maintainer Signed-off-by: Jeffery To <jeffery.to@gmail.com>
4 years ago
seafile-server: Update to 7.1.2, revamp package * Package scripts that are shipped by upstream in their binary download * Includes setup scripts (setup-seafile.sh to use SQLite, setup-seafile-mysql.{sh,py} to use MySQL) and control scripts (seafile.sh, seahub.sh) * Does not include seafile-admin, which is not shipped in upstream's binary download. Combined with the fact that it hasn't been updated to Python 3 suggests the script has been abandoned. * Replace previous init scripts with a simplified script * Previous init scripts (seafile.init, seahub.init) were modified from older versions of seafile.sh and seahub.sh, but they haven't kept up with changes to upstream's scripts * New init script (seafile-server.init) start/stops both Seafile and Seahub (there is no need to control them separately) by calling upstream's control scripts * Replace previous package config file with new config file * Options in previous config file (seafile.conf) were mainly for using Seahub in FastCGI mode. FastCGI was deprecated in Django 1.7 and removed in 1.9; upstream's control script will only start Seahub using Gunicorn. (Options for Gunicorn including port number can be changed by editing /etc/seafile/conf/gunicorn.conf.py.) * New config file (seafile-server.config) has one option that controls where the Seafile/Seahub data directories are stored * Patch scripts/binaries to use standard, system-wide directory locations * Script files (wrappers for binaries) in /usr/bin * Binaries (not meant to be run directly by the user) in /usr/libexec * Config files in /etc/seafile * Pid/socket files in /var/run/seafile * Logs in /var/log/seafile * Include a new script to create the first admin account * With upstream's original scripts, the user is required to interactively create the first admin account when Seahub is started for the first time * The user will now use the new script (create-seafile-admin.sh) to create the first admin account after setup (using setup-seafile.sh or setup-seafile-mysql.sh) and before starting Seafile/Seahub * seahub.sh is patched to only check if there is at least one admin account and exit with an error if there is no admin account * Remove build config options and add seafile-server-fuse package * The console option controls whether the console window is shown when Seafile server is run on Windows. It has no use on Linux. * The fuse option controls whether seaf-fuse is built. (seaf-fuse is a FUSE implementation that allows the Seafile database/file system to be mounted to a local directory.) seaf-fuse is now always built and is available in a separate package (seafile-server-fuse). * Add myself as a maintainer Signed-off-by: Jeffery To <jeffery.to@gmail.com>
4 years ago
  1. --- a/controller/seafile-controller.c
  2. +++ b/controller/seafile-controller.c
  3. @@ -288,7 +288,7 @@ init_seafile_path ()
  4. bin_dir = g_path_get_dirname (binary);
  5. tmp = g_path_get_dirname (bin_dir);
  6. - installpath = g_path_get_dirname (tmp);
  7. + installpath = "/usr/share/seafile/seafile-server";
  8. topdir = g_path_get_dirname (installpath);
  9. --- a/scripts/reset-admin.sh
  10. +++ b/scripts/reset-admin.sh
  11. @@ -1,7 +1,7 @@
  12. #!/bin/bash
  13. SCRIPT=$(readlink -f "$0")
  14. -INSTALLPATH=$(dirname "${SCRIPT}")
  15. +INSTALLPATH=/usr/share/seafile/seafile-server
  16. TOPDIR=$(dirname "${INSTALLPATH}")
  17. default_ccnet_conf_dir=${TOPDIR}/ccnet
  18. default_seafile_data_dir=${TOPDIR}/seafile-data
  19. --- a/scripts/seaf-fsck.sh
  20. +++ b/scripts/seaf-fsck.sh
  21. @@ -3,7 +3,7 @@
  22. echo ""
  23. SCRIPT=$(readlink -f "$0")
  24. -INSTALLPATH=$(dirname "${SCRIPT}")
  25. +INSTALLPATH=/usr/share/seafile/seafile-server
  26. TOPDIR=$(dirname "${INSTALLPATH}")
  27. default_ccnet_conf_dir=${TOPDIR}/ccnet
  28. default_seafile_data_dir=${TOPDIR}/seafile-data
  29. --- a/scripts/seaf-fuse.sh
  30. +++ b/scripts/seaf-fuse.sh
  31. @@ -3,7 +3,7 @@
  32. echo ""
  33. SCRIPT=$(readlink -f "$0")
  34. -INSTALLPATH=$(dirname "${SCRIPT}")
  35. +INSTALLPATH=/usr/share/seafile/seafile-server
  36. TOPDIR=$(dirname "${INSTALLPATH}")
  37. default_ccnet_conf_dir=${TOPDIR}/ccnet
  38. default_seafile_data_dir=${TOPDIR}/seafile-data
  39. --- a/scripts/seaf-gc.sh
  40. +++ b/scripts/seaf-gc.sh
  41. @@ -3,7 +3,7 @@
  42. echo ""
  43. SCRIPT=$(readlink -f "$0")
  44. -INSTALLPATH=$(dirname "${SCRIPT}")
  45. +INSTALLPATH=/usr/share/seafile/seafile-server
  46. TOPDIR=$(dirname "${INSTALLPATH}")
  47. default_ccnet_conf_dir=${TOPDIR}/ccnet
  48. default_seafile_data_dir=${TOPDIR}/seafile-data
  49. --- a/scripts/seafile.sh
  50. +++ b/scripts/seafile.sh
  51. @@ -13,7 +13,7 @@
  52. echo ""
  53. SCRIPT=$(readlink -f "$0")
  54. -INSTALLPATH=$(dirname "${SCRIPT}")
  55. +INSTALLPATH=/usr/share/seafile/seafile-server
  56. TOPDIR=$(dirname "${INSTALLPATH}")
  57. default_ccnet_conf_dir=${TOPDIR}/ccnet
  58. default_seafile_data_dir=${TOPDIR}/seafile-data
  59. --- a/scripts/seahub.sh
  60. +++ b/scripts/seahub.sh
  61. @@ -13,7 +13,7 @@
  62. echo ""
  63. SCRIPT=$(readlink -f "$0")
  64. -INSTALLPATH=$(dirname "${SCRIPT}")
  65. +INSTALLPATH=/usr/share/seafile/seafile-server
  66. TOPDIR=$(dirname "${INSTALLPATH}")
  67. default_ccnet_conf_dir=${TOPDIR}/ccnet
  68. default_seafile_data_dir=${TOPDIR}/seafile-data
  69. --- a/scripts/setup-seafile-mysql.sh
  70. +++ b/scripts/setup-seafile-mysql.sh
  71. @@ -7,7 +7,7 @@
  72. set -e
  73. SCRIPT=$(readlink -f "$0")
  74. -INSTALLPATH=$(dirname "${SCRIPT}")
  75. +INSTALLPATH=/usr/share/seafile/seafile-server
  76. cd "$INSTALLPATH"
  77. --- a/scripts/setup-seafile.sh
  78. +++ b/scripts/setup-seafile.sh
  79. @@ -1,7 +1,7 @@
  80. #!/bin/bash
  81. SCRIPT=$(readlink -f "$0")
  82. -INSTALLPATH=$(dirname "${SCRIPT}")
  83. +INSTALLPATH=/usr/share/seafile/seafile-server
  84. TOPDIR=$(dirname "${INSTALLPATH}")
  85. default_ccnet_conf_dir=${TOPDIR}/ccnet
  86. default_seafile_data_dir=${TOPDIR}/seafile-data