fhem-install.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. $STD apt-get install -y avahi-daemon
  18. $STD apt-get install -y gnupg2
  19. msg_ok "Installed Dependencies"
  20. msg_info "Setting up Fhem Repository"
  21. curl -sSf https://debian.fhem.de/archive.key | gpg --dearmor >/etc/apt/trusted.gpg.d/debianfhemde-archive-keyring.gpg
  22. echo 'deb [signed-by=/etc/apt/trusted.gpg.d/debianfhemde-archive-keyring.gpg] https://debian.fhem.de/nightly/ /' >/etc/apt/sources.list.d/fhem.list
  23. msg_ok "Set up Fhem Repository"
  24. msg_info "Installing Fhem"
  25. $STD apt-get update
  26. $STD apt-get install -y fhem
  27. msg_info "Installed Fhem"
  28. motd_ssh
  29. customize
  30. msg_info "Cleaning up"
  31. $STD apt-get autoremove
  32. $STD apt-get autoclean
  33. msg_ok "Cleaned"