source: /cluster/svnroot/bccd-ng/branches/skylar/bccd-3.4.0-build_ng/bin/bccd_install_pkgs @ 5993

Last change on this file since 5993 was 5993, checked in by skylar, 3 years ago

debug re #1003

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 891 bytes
Line 
1#!/usr/bin/env bash
2
3# $Id: bccd_install_pkgs 5993 2018-02-21 04:22:50Z skylar $
4
5set -xeo pipefail
6
7. "${WORKSPACE}"/bccd.conf
8# Get PACKAGES array
9. "${WORKSPACE}"/packages.conf
10
11/usr/bin/sudo DEBIAN_FRONTEND=noninteractive /usr/sbin/chroot "${WORKSPACE}/debootstrap" apt-get \
12    -o Dpkg::Options::="--force-confnew" \
13    -y install \
14
15/usr/bin/sudo WORKSPACE="${WORKSPACE}" /usr/sbin/chroot "${WORKSPACE}/debootstrap" /usr/bin/dpkg --force-confnew -i /tmp/bccd.noarch.deb
16/usr/bin/sudo /usr/sbin/chroot "${WORKSPACE}/debootstrap" apt-get update
17    ${PACKAGES[@]}
18
19# Clean up and regenerate SSH keys (#993)
20echo "Removing SSH keys in ${WORKSPACE}/debootstrap/etc/ssh" >&2
21/usr/bin/sudo /usr/sbin/chroot "${WORKSPACE}/debootstrap" /usr/bin/find /etc/ssh -type f -name 'ssh*host*key*' -delete -print
22
23# Clean up apt cache (#998)
24echo "Cleaning apt cache" >&2
25/usr/bin/sudo /usr/sbin/chroot "${WORKSPACE}/debootstrap" /usr/bin/apt-get clean
Note: See TracBrowser for help on using the repository browser.