Skip to content

Commit

Permalink
fix scripts (#4217)
Browse files Browse the repository at this point in the history
bxy4543 authored Oct 31, 2023
1 parent 8835beb commit 99d65e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/cloud/install.sh
Original file line number Diff line number Diff line change
@@ -318,11 +318,11 @@ collect_input() {
done
[[ $cloud_port != "" ]] || read -p "$(get_prompt "cloud_port")" cloud_port

[[ $input_cert != "" || ($cert_path != "" && $key_path != "") ]] || [[ $cloud_domain == *"nip.io"* ]] || read -p "$(get_prompt "input_certificate")" input_cert

if [[ $input_cert == "y" || $input_cert == "Y" ]]; then
if [[ $input_cert != "n" && ($cert_path == "" || $key_path == "") ]]; then
read -p "$(get_prompt "certificate_path")" cert_path
read -p "$(get_prompt "private_key_path")" key_path
if [[ $cert_path != "" ]]; then
read -p "$(get_prompt "private_key_path")" key_path
fi
fi
}

@@ -416,7 +416,7 @@ loading_animation() {
execute_commands() {
[[ $k8s_installed == "y" ]] || (get_prompt "k8s_installation" && sealos apply -f $CLOUD_DIR/Clusterfile)
command -v helm > /dev/null 2>&1 || sealos run "${image_registry}/${image_repository}/helm:v${helm_version#v:-3.12.0}"
[[ $k8s_ready == "y" ]] || get_prompt "cilium_requirement" && sealos run "${image_registry}/${image_repository}/cilium:v${cilium_version#v:-1.12.14}"
[[ $k8s_ready == "y" ]] || (get_prompt "cilium_requirement" && sealos run "${image_registry}/${image_repository}/cilium:v${cilium_version#v:-1.12.14}")
wait_cluster_ready
sealos run "${image_registry}/${image_repository}/cert-manager:v${cert_manager_version#v:-1.8.0}"
sealos run "${image_registry}/${image_repository}/openebs:v${openebs_version#v:-3.4.0}"

0 comments on commit 99d65e6

Please sign in to comment.