aboutsummaryrefslogtreecommitdiff
path: root/share/trashman/debian-backports/unix/linux/debian/install
blob: 04ed53e723849957bf1909a33e38d097ccc5afe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
# Debian backports installer
#

# Parameters
SHARE="$1"
LIB="$2"
REQUIREMENTS=""

# Include basic functions
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian    || exit 1

# Requirements
#trashman_apt_install $REQUIREMENTS

# Custom parameters
BACKPORTS="/etc/apt/sources.list/backports.list.d"
VERSION_NAME="trashman_debian_major_version_name"

# Install
cat <<-EOF | tee $BACKPORTS > /dev/null
# backports
deb https://deb.debian.org/debian/ $VERSION_NAME-backports main contrib non-free
deb-src https://deb.debian.org/debian/ $VERSION_NAME-backports main contrib non-free
EOF