File: docker-install-deb.sh

package info (click to toggle)
grml-debootstrap 0.124
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: sh: 2,525; python: 165; makefile: 70; ansic: 49
file content (19 lines) | stat: -rwxr-xr-x 443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Install an already built grml-debootstrap.deb.
# Wrapper around apt-get install for usage inside docker.

set -eu -o pipefail

if [ "$#" -ne 1 ]; then
  echo "$0: Invalid arguments" >&2
  echo "Expect: $0 DEB_NAME" >&2
  exit 1
fi
DEB_NAME="$1"

apt-get update
# docker images can be relatively old, especially for unstable.
apt-get upgrade -qq -y
apt-get install -qq -y "$DEB_NAME"