diff --git a/install.sh b/install.sh index 36f27f3..613142c 100644 --- a/install.sh +++ b/install.sh @@ -40,6 +40,12 @@ if [ ! -f ${CONFIG_FILE} ]; then fi deploy_compose(){ + if grep -q 'deploy_compose' ${KUBE_ROOT}/.install_steps; then + common::rudder_config + common::load_images + common::health_check + return 0 + fi case ${ID} in Debian|debian) system::debian::config_repo @@ -70,6 +76,7 @@ deploy_compose(){ common::load_images common::compose_up common::health_check + echo 'deploy_compose' > ${KUBE_ROOT}/.install_steps } main(){ diff --git a/library/common.sh b/library/common.sh index d6da40b..7587afd 100644 --- a/library/common.sh +++ b/library/common.sh @@ -138,6 +138,7 @@ common::update_hosts(){ # Load all docker archive images common::load_images(){ + infolog "Loading images" local IMAGES=$(find ${IMAGES_DIR} -type f -name '*.tar') for image in ${IMAGES}; do if nerdctl load -i ${image} >/dev/null; then diff --git a/library/remove.sh b/library/remove.sh index e1e3d1f..c0c20f3 100644 --- a/library/remove.sh +++ b/library/remove.sh @@ -10,6 +10,7 @@ remove::cleanup(){ mkcert -uninstall # Remove binary tools file rm -f ${USR_BIN_PATH}/{kubectl,helm,yq,mkcert,skopeo} + rm -f ${KUBE_ROOT}/.install_steps } remove::uninstall_nerdctl_full(){