summaryrefslogtreecommitdiff
path: root/scripts/update_repo.sh
blob: 606bf430ef38697ea3c95622365836363ce7b8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -e

WORKDIR=$(pwd)

REPO_DIR="$WORKDIR/apt-repo"

# create necessary directories
mkdir -p "$REPO_DIR/{conf,dists,incoming,indices,pool,db}"

# repo configuration
cat > "$REPO_DIR/conf/distributions" <<EOF
Codename: focal
Suite: stable
Components: main
Architectures: amd64
EOF

# add packages to the repo
reprepro -b "$REPO_DIR" includedeb focal "$WORKDIR/output/*.deb"