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,14 +444,6 @@ if [ "$1" == "remove" ]; then
exit; exit;
fi; # else run install fi; # else run install
$SUDO_CMD docker pull registry.format.hu/installer-tool
# first install
if [ ! -f "/etc/user/config/system.json" ]; then
INIT="true";
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
@@ -463,6 +455,13 @@ if [ ! -f "/etc/user/config/system.json" ]; then
sleep 5 sleep 5
fi fi
$SUDO_CMD docker pull registry.format.hu/installer-tool
# first install
if [ ! -f "/etc/user/config/system.json" ]; then
INIT="true";
check_running; check_running;
check_dirs_and_files; check_dirs_and_files;