#!/usr/bin/env bash source /app/vagrant/provision/common.sh #== Import script args == timezone=$(echo "$1") #== Provision script == info "Provision-script user: $(whoami)" export DEBIAN_FRONTEND=noninteractive info "Configure timezone" timedatectl set-timezone ${timezone} --no-ask-password info "Update OS software" apt-get update apt-get upgrade -y info "Install ubuntu tools" apt-get install -y ca-certificates wget gnupg2 lsb-release curl zip unzip bc ntp xmlstarlet bash-completion info "Install Node.js" apt-get install -y gcc g++ make curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh bash nodesource_setup.sh rm nodesource_setup.sh apt-get -y install nodejs curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list yarn set version berry apt remove cmdtest apt update apt install yarn