meshcentral-install.sh 939 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 "Setting up Node.js Repository"
  19. $STD bash <(curl -fsSL https://deb.nodesource.com/setup_16.x)
  20. msg_ok "Set up Node.js Repository"
  21. msg_info "Installing Node.js"
  22. $STD apt-get install -y nodejs
  23. msg_ok "Installed Node.js"
  24. msg_info "Installing MeshCentral"
  25. mkdir /opt/meshcentral
  26. cd /opt/meshcentral
  27. $STD npm install meshcentral
  28. $STD node node_modules/meshcentral --install
  29. msg_ok "Installed MeshCentral"
  30. motd_ssh
  31. customize
  32. msg_info "Cleaning up"
  33. $STD apt-get autoremove
  34. $STD apt-get autoclean
  35. msg_ok "Cleaned"