run additionals only

This commit is contained in:
2023-06-16 13:22:15 +00:00
parent bf9c3b4dea
commit ae9ffcffcd

View File

@@ -69,7 +69,9 @@ ask_envs() {
fi;
echo "Invalid email address.";
done
}
discover_services() {
echo "Would you like to discover services? (Y/n)";
read -r ANSWER;
if [ "$ANSWER" == "n" ] || [ "$ANSWER" == "N" ]; then
@@ -96,7 +98,6 @@ ask_envs() {
fi
DISCOVERY_CONFIG_DIR=$(dirname $DISCOVERY_CONFIG_FILE)
fi
}
check_dirs_and_files() {
@@ -344,6 +345,9 @@ if [ "$USER" != "root" ] ; then
fi;
fi;
# first install
if [ ! -f "/etc/user/config/system.json" ]; then
echo "Would you like to install/update docker? (y/N)";
read -r ANSWER;
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
@@ -361,6 +365,8 @@ check_dirs_and_files;
ask_envs;
discover_services;
$SUDO_CMD docker pull registry.format.hu/installer-tool
# Validating previously created vaiables
@@ -466,6 +472,7 @@ if [ "$SMARTHOST_PROXY" == "yes" ]; then
fi
fi
fi;
# install additionals - run installer-tool again but additional_install.sh instead of deploy.sh
echo "Would you like to install additional applications? (Y/n)";
@@ -523,6 +530,8 @@ if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ]; then
echo "$INIT_SERVICE_PATH/$ADDITIONAL_SERVICE.json" >> $PWD/.init_services
done
fi
discover_services;
fi
if [ "$DISCOVERY" == "yes" ] ; then