2017-01-24 23:15:13 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-01-25 14:49:30 +01:00
|
|
|
HAS_SYSTEMD=$(which systemctl)
|
|
|
|
ENGINE=chroot
|
|
|
|
if [ ! -z "${HAS_SYSTEMD}" ]; then
|
|
|
|
ENGINE=systemd-nspawn
|
|
|
|
fi
|
|
|
|
|
2017-01-24 23:15:13 +01:00
|
|
|
${TAMARIN_ACBUILD} environment add DEBIAN_FRONTEND noninteractive
|
2017-01-25 14:49:30 +01:00
|
|
|
sudo -E /usr/bin/env bash - <<EOF
|
|
|
|
export PATH=${PATH}
|
|
|
|
${TAMARIN_ACBUILD} run --engine "${ENGINE}" -- apt-get update
|
|
|
|
${TAMARIN_ACBUILD} run --engine "${ENGINE}" -- apt-get install --yes --no-install-recommends git-core
|
|
|
|
EOF
|
2017-01-24 23:15:13 +01:00
|
|
|
${TAMARIN_ACBUILD} environment remove DEBIAN_FRONTEND
|