Commit 3ab76d17 authored by Michel Memeteau's avatar Michel Memeteau

Add docker install

parent 365e2048
......@@ -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
......
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