whoogle-install.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env bash
  2. # Copyright (c) 2021-2023 tteck
  3. # Author: tteck (tteckster)
  4. # License: MIT
  5. # https://github.com/tteck/Proxmox/raw/main/LICENSE
  6. source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
  7. color
  8. verb_ip6
  9. catch_errors
  10. setting_up_container
  11. network_check
  12. update_os
  13. msg_info "Installing Dependencies"
  14. $STD apt-get install -y curl
  15. $STD apt-get install -y sudo
  16. $STD apt-get install -y mc
  17. msg_ok "Installed Dependencies"
  18. msg_info "Installing Python3-pip"
  19. $STD apt-get install -y python3-pip
  20. msg_ok "Installed Python3-pip"
  21. msg_info "Installing Whoogle"
  22. $STD pip install brotli
  23. $STD pip install whoogle-search
  24. service_path="/etc/systemd/system/whoogle.service"
  25. echo "[Unit]
  26. Description=Whoogle-Search
  27. After=network.target
  28. [Service]
  29. ExecStart=/usr/local/bin/whoogle-search --host 0.0.0.0
  30. Restart=always
  31. User=root
  32. [Install]
  33. WantedBy=multi-user.target" >$service_path
  34. $STD systemctl enable --now whoogle.service
  35. msg_ok "Installed Whoogle"
  36. motd_ssh
  37. customize
  38. msg_info "Cleaning up"
  39. $STD apt-get autoremove
  40. $STD apt-get autoclean
  41. msg_ok "Cleaned"