# abort on error
set -e
-# set locale to UTF-8 compatible. apologies to non-english speakers...
-locale-gen en_GB.utf8
-update-locale LANG=en_GB.utf8 LC_ALL=en_GB.utf8
-export LANG=en_GB.utf8
-export LC_ALL=en_GB.utf8
-
# make sure we have up-to-date packages
apt-get update
apt-get upgrade -y
# install packages as explained in INSTALL.md
-apt-get install -y ruby2.7 libruby2.7 ruby2.7-dev \
- libxml2-dev libxslt1-dev nodejs yarnpkg \
- build-essential git-core firefox-geckodriver \
- postgresql postgresql-contrib libpq-dev libvips-dev \
+apt-get install -y ruby ruby-dev ruby-bundler \
+ libxml2-dev libxslt1-dev nodejs npm \
+ build-essential git-core firefox-esr \
+ postgresql postgresql-contrib libpq-dev libvips-dev libyaml-dev \
libsasl2-dev libffi-dev libgd-dev libarchive-dev libbz2-dev
-gem2.7 install --version "~> 2.1.4" bundler
+npm install --global yarn
## install the bundle necessary for openstreetmap-website
pushd /srv/openstreetmap-website