Skip to content

Commit 05296b1

Browse files
igorpecovnikTearran
authored andcommitted
Add unit tests
1 parent f68bf4b commit 05296b1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/armbian-configng/config.ng.software.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ module_options+=(
8282
#
8383
install_docker() {
8484
# Check if repo for distribution exists.
85-
DISTROID=bookworm
8685
URL="https://download.docker.com/linux/${DISTRO,,}/dists/$DISTROID"
8786
if wget --spider "${URL}" 2> /dev/null; then
8887
# Add Docker's official GPG key:
@@ -101,7 +100,6 @@ install_docker() {
101100
fi
102101
systemctl enable docker.service > /dev/null 2>&1
103102
systemctl enable containerd.service > /dev/null 2>&1
104-
sudo usermod -aG docker $USER > /dev/null 2>&1
105103
whiptail --msgbox "To test that Docker has installed successfully\nrun the following command: docker run hello-world" 9 70
106104
fi
107105
else

tests/SW26.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ENABLED=true
2+
RELEASE="bookworm:jammy:noble"
3+
CONDITION="docker run hello-world"

0 commit comments

Comments
 (0)