ask about docker install/update in each run
This commit is contained in:
21
install.sh
21
install.sh
@@ -444,6 +444,16 @@ if [ "$1" == "remove" ]; then
|
|||||||
exit;
|
exit;
|
||||||
fi; # else run install
|
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
|
$SUDO_CMD docker pull registry.format.hu/installer-tool
|
||||||
|
|
||||||
@@ -452,17 +462,6 @@ if [ ! -f "/etc/user/config/system.json" ]; then
|
|||||||
|
|
||||||
INIT="true";
|
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_running;
|
||||||
|
|
||||||
check_dirs_and_files;
|
check_dirs_and_files;
|
||||||
|
Reference in New Issue
Block a user