Newer
Older
gitbucket_jkp / contrib / gitbucket.conf
@Mike Slinn Mike Slinn on 29 Jul 2014 1 KB Works under Ubuntu and Mac OS/X
  1. # Configuration section is below. Ignore this part
  2.  
  3. function isUbuntu {
  4. if [ -f /etc/lsb-release ]; then
  5. grep -i ubuntu /etc/lsb-release | head -n 1 | cut -d \ -f 1 | cut -d = -f 2
  6. fi
  7. }
  8.  
  9. function isRedHat {
  10. if [ -d "/etc/rc.d/init.d" ]; then echo yes; fi
  11. }
  12.  
  13. function isMac {
  14. if [[ "$(uname -a | cut -d \ -f 1 )" == "Darwin" ]]; then echo yes; fi
  15. }
  16.  
  17. #
  18. # Configuration section start
  19. #
  20.  
  21. # Bind host
  22. GITBUCKET_HOST=0.0.0.0
  23.  
  24. # Other Java option
  25. GITBUCKET_JVM_OPTS=-Dmail.smtp.starttls.enable=true
  26.  
  27. # Data directory, holds repositories
  28. GITBUCKET_HOME=/var/lib/gitbucket
  29.  
  30. GITBUCKET_LOG_DIR=/var/log/gitbucket
  31.  
  32. # Server port
  33. GITBUCKET_PORT=8080
  34.  
  35. # URL prefix for the GitBucket page (http://<host>:<port>/<prefix>/)
  36. GITBUCKET_PREFIX=
  37.  
  38. # Directory where GitBucket is installed
  39. # Configuration is stored here:
  40. GITBUCKET_DIR=/usr/share/gitbucket
  41. GITBUCKET_WAR_DIR=$GITBUCKET_DIR/lib
  42.  
  43. # Path to the WAR file
  44. GITBUCKET_WAR_FILE=$GITBUCKET_WAR_DIR/gitbucket.war
  45.  
  46. # GitBucket version to fetch when installing
  47. GITBUCKET_VERSION=2.1
  48.  
  49. #
  50. # End of configuration section. Ignore this part
  51. #
  52. if [ `isUbuntu` ]; then
  53. GITBUCKET_SERVICE=/etc/init.d/gitbucket
  54. elif [ `isRedHat` ]; then
  55. GITBUCKET_SERVICE=/etc/rc.d/init.d
  56. elif [ `isMac` ]; then
  57. GITBUCKET_SERVICE=/Library/StartupItems/GitBucket/GitBucket
  58. else
  59. echo "Don't know how to install onto this OS"
  60. exit -2
  61. fi
  62.