freedombone-vars 2.7KB

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