From 3ab76d17ff48a1df34fdb56a2c685f252ef4a351 Mon Sep 17 00:00:00 2001 From: freechelmi Date: Wed, 26 Feb 2020 15:55:14 +0100 Subject: [PATCH] Add docker install --- install.linux.sh | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) mode change 100644 => 100755 install.linux.sh diff --git a/install.linux.sh b/install.linux.sh old mode 100644 new mode 100755 index 80f70f3..a82575a --- a/install.linux.sh +++ b/install.linux.sh @@ -44,18 +44,29 @@ MAIL_PORT=587 -echo "Welcome to libre.sh installer" -echo "WIP" +echo "-------- Welcome to libre.sh $LIBRE_VERSION installer" # STEP add kernel parameter # STEP Define environnement -echo " setting up system variables" +echo "-------- setting up system variables" + + +# STEP Install Docker + +echo "-------- Install latest docker " +# TODO : Fix a version for docker ? + + +curl -fsSL https://get.docker.com -o get-docker.sh +sh get-docker.sh # STEP "install docker-compose" +echo "-------- Install latest docker-compose " + # TODO : Fix a version for docker compose ? mkdir -p /opt/bin &&\ @@ -67,11 +78,11 @@ chmod +x /opt/bin/docker-compose # STEP install Libre.sh -echo " installing libre.sh" +echo "-------- installing libre.sh" git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh mkdir -p /{data,system} -mkdir /data/trash +mkdir -p /data/trash cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload systemctl enable web-net.service systemctl start web-net.service @@ -82,7 +93,7 @@ cp /libre.sh/utils/* /opt/bin/ # STEP add /opt/bin path -echo " - updating PATH" +echo "-------- updating PATH" cat > /etc/profile.d/libre.sh <