Update install.sh
This commit is contained in:
17
install.sh
17
install.sh
@@ -28,8 +28,16 @@ function check_and_install_docker() {
|
||||
|
||||
if ! docker compose version &>/dev/null; then
|
||||
echo -e "${YELLOW}➕ Installing Docker Compose plugin...${NC}"
|
||||
apt install -y docker-compose-plugin
|
||||
echo -e "${GREEN}✅ Docker Compose plugin installed.${NC}"
|
||||
if apt-cache show docker-compose-plugin &>/dev/null; then
|
||||
apt install -y docker-compose-plugin
|
||||
else
|
||||
mkdir -p ~/.docker/cli-plugins
|
||||
curl -SL https://github.com/docker/compose/releases/download/v2.27.1/docker-compose-linux-x86_64 \
|
||||
-o ~/.docker/cli-plugins/docker-compose
|
||||
chmod +x ~/.docker/cli-plugins/docker-compose
|
||||
export PATH="$HOME/.docker/cli-plugins:$PATH"
|
||||
fi
|
||||
echo -e "${GREEN}✅ Docker Compose v2 installed.${NC}"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -55,6 +63,11 @@ function set_telegram_credentials() {
|
||||
}
|
||||
|
||||
function clone_and_build() {
|
||||
if [ -d "$CLONE_DIR" ]; then
|
||||
echo -e "${RED}⚠️ Folder '$CLONE_DIR' already exists. Please remove or rename it first.${NC}"
|
||||
return
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}📥 Cloning repo...${NC}"
|
||||
git clone "$REPO_URL" "$CLONE_DIR"
|
||||
cd "$CLONE_DIR" || exit 1
|
||||
|
||||
Reference in New Issue
Block a user