freedombone-utils-help 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/bin/bash
  2. # _____ _ _
  3. # | __|___ ___ ___ _| |___ _____| |_ ___ ___ ___
  4. # | __| _| -_| -_| . | . | | . | . | | -_|
  5. # |__| |_| |___|___|___|___|_|_|_|___|___|_|_|___|
  6. #
  7. # Freedom in the Cloud
  8. #
  9. # Show help
  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. function show_help {
  29. echo ''
  30. echo $"${PROJECT_NAME} -c [configuration file]"
  31. echo ''
  32. echo $' -h --help Show help'
  33. echo $' menuconfig Easy interactive installation'
  34. echo $' menuconfig-full Full interactive installation'
  35. echo $' menuconfig-onion Interactive installation for onion-only sites'
  36. echo $' -c --config Installing from a configuration file'
  37. echo $' --bbb Installing on Beaglebone Black'
  38. echo $' -u --user User to install the system as'
  39. echo $' -d --domain Default domain name'
  40. echo $' -s --system System type'
  41. echo $' --ip Static LAN IP address of the system'
  42. echo $' --iprouter LAN IP address of the internet router'
  43. echo $' --ddns Dynamic DNS provider domain'
  44. echo $' --ddnsuser Dynamic DNS provider username'
  45. echo $' --ddnspass Dynamic DNS provider password'
  46. echo ''
  47. echo $' -t --time Domain used as a TLS time source'
  48. echo $' --ssh ssh port number'
  49. echo $' --list Public mailing list name'
  50. echo $' --cores Number of CPU cores'
  51. echo $' --name Your name'
  52. echo $' --email Your email address'
  53. echo $' --usb Path for the USB drive (eg. /dev/sdb1)'
  54. echo $' --vpass Mumble server password'
  55. echo $' --vport Mumble server port'
  56. echo $' --ns1 First DNS nameserver'
  57. echo $' --ns2 Second DNS nameserver'
  58. echo $' --repo Debian repository'
  59. echo ''
  60. echo 'Possible variants are:'
  61. show_available_variants
  62. exit 0
  63. }
  64. # NOTE: deliberately no exit 0