From 1581e7c5c73012e4b2ef3babf19c8d541e85d17e Mon Sep 17 00:00:00 2001 From: abdulhade Date: Thu, 20 Mar 2025 06:15:28 +0300 Subject: [PATCH] Fixed the piping problem between wget and bash, and used docker buildx. --- README.md | 5 ++++- scripts/manager.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f370ebb..5ce59ed 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,10 @@ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget git Run the setup script: ```bash -wget -qO- https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh | bash +mkdir -p ~/.db-middleware/scripts && +cd ~/.db-middleware/scripts && +wget -qO setup.sh https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh && +bash setup.sh ``` diff --git a/scripts/manager.sh b/scripts/manager.sh index 2b8d7e1..1d4b937 100755 --- a/scripts/manager.sh +++ b/scripts/manager.sh @@ -50,7 +50,7 @@ build_docker_image() { fi echo "Building Docker image..." export DOCKER_BUILDKIT=1 - if sudo docker build -t "$IMAGE_NAME" .; then + if sudo docker buildx build -t "$IMAGE_NAME" .; then echo "Docker image built successfully." return 0 else