Only running apt update daily in map installer.

This commit is contained in:
Roland 2022-03-09 20:18:19 -07:00
parent b1d526fb0b
commit 67fba510dc
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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 \