Skip to content

Commit

Permalink
chore(install.sh): fix regenerate the registry certificate error
Browse files Browse the repository at this point in the history
  • Loading branch information
muzi502 committed Sep 23, 2021
1 parent 7945a4a commit 90d53d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,6 +76,7 @@ deploy_compose(){
common::load_images
common::compose_up
common::health_check
echo 'deploy_compose' > ${KUBE_ROOT}/.install_steps
}

main(){
Expand Down
1 change: 1 addition & 0 deletions library/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions library/remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 90d53d7

Please sign in to comment.