ask about docker install/update in each run
This commit is contained in:
15
install.sh
15
install.sh
@@ -444,14 +444,6 @@ if [ "$1" == "remove" ]; then
|
||||
exit;
|
||||
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)";
|
||||
read -r ANSWER;
|
||||
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
|
||||
@@ -463,6 +455,13 @@ if [ ! -f "/etc/user/config/system.json" ]; then
|
||||
sleep 5
|
||||
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_dirs_and_files;
|
||||
|
Reference in New Issue
Block a user