Unverified Commit c7e6a093 authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Cleaner Docker install

parent 977ed109
...@@ -675,6 +675,17 @@ debconf-apt-progress -- apt-get -y install $pkglist ...@@ -675,6 +675,17 @@ debconf-apt-progress -- apt-get -y install $pkglist
install_docker ()
{
echo "deb https://download.docker.com/linux/${family,,} $distribution edge" > /etc/apt/sources.list.d/docker.list
curl -fsSL "https://download.docker.com/linux/${family,,}/gpg" | apt-key add -qq - >/dev/null
debconf-apt-progress -- apt-get update
debconf-apt-progress -- apt-get install -y -qq --no-install-recommends docker-ce
}
install_urbackup () install_urbackup ()
{ {
# #
...@@ -1565,14 +1576,11 @@ while true; do ...@@ -1565,14 +1576,11 @@ while true; do
selection=${selection//\"Pi hole\"/} selection=${selection//\"Pi hole\"/}
fi fi
if [[ "$selection" == Docker && "$DOCKER_STATUS" != "on" ]]; then if [[ "$selection" == Docker && "$DOCKER_STATUS" != "on" ]]; then
curl -sSL https://get.docker.com | sh install_docker
systemctl enable docker selection=${selection//\"Docker\"/}
systemctl start docker
selection=${selection//\"Docker\"/}
fi fi
if [[ "$selection" == *Transmission* && "$TRANSMISSION_STATUS" != "on" ]]; then if [[ "$selection" == *Transmission* && "$TRANSMISSION_STATUS" != "on" ]]; then
install_transmission install_transmission
selection=${selection//Transmission/} selection=${selection//Transmission/}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment