From 67fba510dc3c8ac103c854083dff7c837bb3009b Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 9 Mar 2022 20:18:19 -0700 Subject: [PATCH] Only running apt update daily in map installer. --- scripts/ubuntu_20.04_install_map.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ubuntu_20.04_install_map.sh b/scripts/ubuntu_20.04_install_map.sh index 2a9b2803..746e733e 100755 --- a/scripts/ubuntu_20.04_install_map.sh +++ b/scripts/ubuntu_20.04_install_map.sh @@ -5,6 +5,8 @@ set -x set -e +# Update if we haven't updated in the last day. +[ -z "$(find -H /var/lib/apt/lists -maxdepth 0 -mtime -1)" ] && apt update # Install map dependencies. apt install -y libboost-all-dev git tar unzip wget bzip2 build-essential autoconf libtool libxml2-dev libgeos-dev \ libgeos++-dev libpq-dev libbz2-dev libproj-dev munin-node munin protobuf-c-compiler libfreetype6-dev libtiff5-dev \