setup-forgejo/docker.sh

13 lines
356 B
Bash
Raw Normal View History

2023-03-25 11:06:50 -04:00
#!/bin/bash
set -x
setup() {
if ! systemctl is-active --quiet docker; then
echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --quiet -y -t bullseye-backports git docker.io
fi
}
setup