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)