remove docker.gpg if exists

This commit is contained in:
2023-08-08 15:59:08 +00:00
parent d4654fc0fd
commit 2e2d7add96

View File

@@ -516,6 +516,11 @@ fi;
echo "Would you like to install/update docker? (y/N)"; echo "Would you like to install/update docker? (y/N)";
read -r ANSWER; read -r ANSWER;
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
if [ -f "/etc/apt/keyrings/docker.gpg" ]; then
rm -f /etc/apt/keyrings/docker.gpg
fi;
#install_docker_deb; #install_docker_deb;
# install docker using apt-get # install docker using apt-get
install_docker_apt install_docker_apt