runtipi-install.sh 957 B

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. msg_ok "Installed Dependencies"
  18. msg_info "Installing Runtipi (Patience)"
  19. DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
  20. mkdir -p "$(dirname "$DOCKER_CONFIG_PATH")"
  21. echo -e '{\n "log-driver": "journald"\n}' > "$DOCKER_CONFIG_PATH"
  22. cd /opt
  23. wget -q https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh
  24. sed -i -e '/newgrp docker/d' -e '/exit 0/d' install.sh
  25. chmod +x install.sh
  26. $STD ./install.sh
  27. msg_ok "Installed Runtipi"
  28. motd_ssh
  29. customize
  30. msg_info "Cleaning up"
  31. rm /opt/install.sh
  32. $STD apt-get autoremove
  33. $STD apt-get autoclean
  34. msg_ok "Cleaned"