freedombone-vars 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #!/bin/bash
  2. # _____ _ _
  3. # | __|___ ___ ___ _| |___ _____| |_ ___ ___ ___
  4. # | __| _| -_| -_| . | . | | . | . | | -_|
  5. # |__| |_| |___|___|___|___|_|_|_|___|___|_|_|___|
  6. #
  7. # Freedom in the Cloud
  8. #
  9. # Common variables and functions
  10. #
  11. # License
  12. # =======
  13. #
  14. # Copyright (C) 2014-2018 Bob Mottram <bob@freedombone.net>
  15. #
  16. # This program is free software: you can redistribute it and/or modify
  17. # it under the terms of the GNU Affero General Public License as published by
  18. # the Free Software Foundation, either version 3 of the License, or
  19. # (at your option) any later version.
  20. #
  21. # This program is distributed in the hope that it will be useful,
  22. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. # GNU Affero General Public License for more details.
  25. #
  26. # You should have received a copy of the GNU Affero General Public License
  27. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  28. DEFAULT_LANGUAGE=$LANG
  29. if [ ! "$PROJECT_NAME" ]; then
  30. PROJECT_NAME='freedombone'
  31. fi
  32. PROJECT_INSTALL_DIR=/usr/local/bin
  33. if [ -f /usr/bin/${PROJECT_NAME} ]; then
  34. PROJECT_INSTALL_DIR=/usr/bin
  35. fi
  36. # username created by default within a debian image
  37. GENERIC_IMAGE_USERNAME='fbone'
  38. # Web site
  39. PROJECT_WEBSITE="http://${PROJECT_NAME}.uk.to"
  40. # Repo
  41. PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
  42. # Are we installing on a Beaglebone Black (BBB) or some other system?
  43. INSTALLING_ON_BBB="no"
  44. # Version number of this script
  45. VERSION="3.1"
  46. # if yes then this minimises the number of descisions presented during install
  47. MINIMAL_INSTALL="yes"
  48. # Whether web sites will be .onion addresses only
  49. ONION_ONLY="no"
  50. # whether the system is being installed from a pre-created configuration file
  51. INSTALLING_FROM_CONFIGURATION_FILE="no"
  52. # number of CPU cores
  53. CPU_CORES=1
  54. # whether to route outgoing traffic through Tor
  55. ROUTE_THROUGH_TOR="no"
  56. # Whether this system is being installed within a docker container
  57. INSTALLED_WITHIN_DOCKER="no"
  58. DEBIAN_VERSION="stretch"
  59. # social key management
  60. ENABLE_SOCIAL_KEY_MANAGEMENT="no"
  61. # Whether this is a dedicated gnusocial or postactiv instance
  62. SOCIALINSTANCE=
  63. # include utils
  64. UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*"
  65. for f in $UTILS_FILES
  66. do
  67. source "$f"
  68. done
  69. # include base system apps
  70. BASE_SYSTEM_FILES="/usr/share/${PROJECT_NAME}/base/${PROJECT_NAME}-base-*"
  71. for f in $BASE_SYSTEM_FILES
  72. do
  73. source "$f"
  74. done
  75. #include apps
  76. APP_FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*"
  77. for f in $APP_FILES
  78. do
  79. source "$f"
  80. done
  81. # optionally specify your name to appear on the blog
  82. MY_NAME=$DEFAULT_DOMAIN_NAME
  83. # used to select mesh install functions when creating a mesh image
  84. INSTALLING_MESH=
  85. # The .local avahi name
  86. LOCAL_NAME=${PROJECT_NAME}
  87. # NOTE: deliberately there is no "exit 0"