forked from spinesystemspublic/documentation
Add debian support
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
This commit is contained in:
@@ -37,10 +37,17 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
|
||||
| gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
|
||||
# ubuntu or debian?
|
||||
KIND=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$KIND" != "ubuntu" && "$KIND" != "debian" ]]; then
|
||||
echo "This script is intended for Ubuntu or Debian systems only."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 5) Set up the Docker APT repository
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
|
||||
https://download.docker.com/linux/ubuntu \
|
||||
https://download.docker.com/linux/$KIND \
|
||||
$(lsb_release -cs) stable" \
|
||||
| tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user