From: Elias Fleckenstein Date: Sat, 20 Feb 2021 15:18:45 +0000 (+0100) Subject: Fix submodule handling in setup and update script X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=97bb8b96a23572961cc0c927f134ead0b6e8b752;p=elidragon_v2.git Fix submodule handling in setup and update script --- diff --git a/scripts/setup.sh b/scripts/setup.sh index be0ca80..8f61cff 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -3,7 +3,8 @@ # Install everything needed by the server # Initialize submodules -git submodule update --recursive --remote +git submodule init +git submodule update # Add apt repo to always get the lastest MT release sudo add-apt-repository ppa:minetestdevs/stable diff --git a/scripts/update.sh b/scripts/update.sh index f4e147d..56b12e1 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -2,8 +2,12 @@ # Elidragon v2 update script # Update all software used by the server -# Update this repo, also update submodules -git pull --recurse-submodules +# Pull repository +git pull + +# Update submodules +git submodule init +git submodule update # Update minetest and screen sudo apt-get update -y