whoogle-install.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 "Updating Python3"
  19. $STD apt-get install -y \
  20. python3 \
  21. python3-dev \
  22. python3-pip
  23. msg_ok "Updated Python3"
  24. msg_info "Installing Whoogle"
  25. $STD pip install brotli
  26. $STD pip install whoogle-search
  27. service_path="/etc/systemd/system/whoogle.service"
  28. echo "[Unit]
  29. Description=Whoogle-Search
  30. After=network.target
  31. [Service]
  32. ExecStart=/usr/local/bin/whoogle-search --host 0.0.0.0
  33. Restart=always
  34. User=root
  35. [Install]
  36. WantedBy=multi-user.target" >$service_path
  37. $STD systemctl enable --now whoogle.service
  38. msg_ok "Installed Whoogle"
  39. motd_ssh
  40. customize
  41. msg_info "Cleaning up"
  42. $STD apt-get autoremove
  43. $STD apt-get autoclean
  44. msg_ok "Cleaned"