From aa3d978b5fa010470d0cf9a57847f02881c401d3 Mon Sep 17 00:00:00 2001 From: COURCELLE <theo@ekimia.fr> Date: Wed, 21 Jun 2023 11:53:36 +0200 Subject: [PATCH] fix libresh install & add git install --- install.linux.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/install.linux.sh b/install.linux.sh index 9067923..a684659 100755 --- a/install.linux.sh +++ b/install.linux.sh @@ -119,13 +119,28 @@ dockerComposeVersion=$(curl -s https://api.github.com/repos/docker/compose/relea curl -L https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose &&\ chmod +x /opt/bin/docker-compose - +# STEP "install git" + +echo "-------- Install git" + +distro=$( ( lsb_release -ds || cat /etc/*release || uname -om ) 2>/dev/null | head -n1 | cut -d " " -f1) +if [[ "$distro" == "Ubuntu" || "$distro" == "Debian" ]]; then +sudo apt-get install -y git +elif [[ "$distro" == "CentOS" || "$distro" == "AlmaLinux" || "$distro" == "Rocky" || "$distro" == "Fedora" ]]; then +yum install -y git +elif [[ "$distro" == "openSUSE" ]]; then +zypper install git +elif [[ "$distro" == "Arch" ]]; then +pacman -S git +elif [[ "$distro" == "Mageia" ]]; then +urpmi git +fi # STEP install Libre.sh echo "-------- installing libre.sh" -git clone https://lab.libreho.st/libre.sh/compose.libre.sh -b $LIBRE_VERSION /libre.sh +git clone https://lab.libreho.st/libre.sh/compose.libre.sh.git /libre.sh mkdir -p /{data,system} mkdir -p /data/trash cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload @@ -146,4 +161,3 @@ chmod 644 /etc/profile.d/libre.sh bash /etc/profile.d/libre.sh #TODO : reload profile to use libre right away - -- GitLab