Add docker install

This commit is contained in:
freechelmi 2020-02-26 15:55:14 +01:00
parent 365e20480d
commit 3ab76d17ff

23
install.linux.sh Normal file → Executable file
View file

@ -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 <<EOF
export PATH=$PATH:/opt/bin
EOF