umbrel-install.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 Umbrel (Patience)"
  19. DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
  20. mkdir -p $(dirname $DOCKER_CONFIG_PATH)
  21. if [ "$ST" == "yes" ]; then
  22. VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
  23. cd /usr/local/bin
  24. curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
  25. chmod 755 /usr/local/bin/fuse-overlayfs
  26. cd ~
  27. echo -e '{\n "storage-driver": "fuse-overlayfs",\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
  28. else
  29. echo -e '{\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
  30. fi
  31. $STD bash <(curl -fsSL https://umbrel.sh)
  32. systemctl daemon-reload
  33. $STD systemctl enable --now umbrel-startup.service
  34. msg_ok "Installed Umbrel"
  35. motd_ssh
  36. customize
  37. msg_info "Cleaning up"
  38. $STD apt-get autoremove
  39. $STD apt-get autoclean
  40. msg_ok "Cleaned"