From 9ad5992c2be98d7863c1102d62ae1848973e0159 Mon Sep 17 00:00:00 2001 From: Meghdad Shamsaei Date: Fri, 10 Jan 2025 01:22:17 +0100 Subject: [PATCH] Update setup.sh Preparing all docker compose configs included Signed-off-by: Meghdad Shamsaei --- setup.sh | 185 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 133 insertions(+), 52 deletions(-) diff --git a/setup.sh b/setup.sh index 7948a4ad..4f57a738 100755 --- a/setup.sh +++ b/setup.sh @@ -1,70 +1,151 @@ -#!/bin/bash - +#!/bin/sh +# # This script is used to install the required packages and download # the latest version of GatewayD from GitHub and install the plugins. +# If you run ./setup.sh -d or ./setup.sh --docker, it prepare Docker compose related files and configs. +# Written in a POSIX-compatible way (sh, dash, bash, etc.). + +set -eu #exit on any error and treat unset variables as errors + + +usage() { + cat <