ask about docker install/update in each run

This commit is contained in:
2023-07-10 14:13:14 +00:00
parent eb48e0cf22
commit 698368be94

View File

@@ -444,6 +444,16 @@ if [ "$1" == "remove" ]; then
exit;
fi; # else run install
echo "Would you like to install/update docker? (y/N)";
read -r ANSWER;
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
#install_docker_deb;
# install docker using apt-get
install_docker_apt
echo "Wait..."
sleep 5
fi
$SUDO_CMD docker pull registry.format.hu/installer-tool
@@ -452,17 +462,6 @@ if [ ! -f "/etc/user/config/system.json" ]; then
INIT="true";
echo "Would you like to install/update docker? (y/N)";
read -r ANSWER;
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
#install_docker_deb;
# install docker using apt-get
install_docker_apt
echo "Wait..."
sleep 5
fi
check_running;
check_dirs_and_files;