Add docker install
This commit is contained in:
parent
365e20480d
commit
3ab76d17ff
1 changed files with 17 additions and 6 deletions
23
install.linux.sh
Normal file → Executable file
23
install.linux.sh
Normal file → Executable 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
|
||||
|
|
Loading…
Reference in a new issue