default.txt 439 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. ###### BEGIN CONFIG
  3. ACCEPTED_HOSTS="/root/.hag_accepted.conf"
  4. BE_VERBOSE=false
  5. ###### END CONFIG
  6. if [ "$UID" -ne 0 ]
  7. then
  8. echo "Superuser rights is required"
  9. echo 'Printing the # sign'
  10. exit 2
  11. fi
  12. if test $# -eq 0
  13. then
  14. elif test [ $1 == 'start' ]
  15. else
  16. fi
  17. genApacheConf(){
  18. if [[ "$2" = "www" ]]
  19. then
  20. full_domain=$1
  21. else
  22. full_domain=$2.$1
  23. fi
  24. host_root="${APACHE_HOME_DIR}$1/$2/$(title)"
  25. echo -e "# Host $1/$2 :"
  26. }