Update install.sh

This commit is contained in:
Nicolas Meienberger 2023-11-02 18:01:09 +01:00 committed by Nicolas Meienberger
parent 0eb7218063
commit 79153b6b78

View file

@ -185,18 +185,10 @@ fi
curl --location "$URL" -o ./runtipi-cli
chmod +x ./runtipi-cli
# Check if user is in docker group
if [ "$(id -u)" -ne 0 ]; then
if ! groups | grep -q docker; then
sudo usermod -aG docker "$USER"
newgrp docker
fi
fi
# Check if git is installed
if ! command -v git >/dev/null; then
echo "Git is not installed. Please install git and restart the script."
exit 1
fi
./runtipi-cli start
sudo ./runtipi-cli start