From e07f95ceab41d7ba002427815e9463021acbdf8b Mon Sep 17 00:00:00 2001 From: themodernhakr Date: Tue, 4 Mar 2025 12:25:52 -0600 Subject: [PATCH] fix git detection and installation --- server-properties/start.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server-properties/start.sh b/server-properties/start.sh index 56f9853..5d45d4c 100644 --- a/server-properties/start.sh +++ b/server-properties/start.sh @@ -6,6 +6,16 @@ configPath="./config" serverConfigDir="server-properties" packwizPath="http://nginxwebdav:32080/ferdinland/modpacks/server/smp/" +# Install git if it's not installed +export git=$(which git) +if [-z $git] +then + eco installing git... + apt install git +else + echo git is already installed +fi + # Update config directory (cd "$configPath" && git pull)