Fix type in var name

This commit is contained in:
Jeremy Gardais 2023-05-04 09:38:12 +02:00
parent 36f9d85979
commit 6ad4deabef
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 7 deletions

View File

@ -266,7 +266,6 @@ The file ${RED}${local_file}${COLOR_DEBUG} exists and has a size greater than ze
unset debug_prefix unset debug_prefix
return "${return_is_file_empty}" return "${return_is_file_empty}"
} }
# }}} # }}}
@ -308,19 +307,19 @@ temp_dir: ${RED}${temp_dir}${COLOR_DEBUG}"
printf '%b\n' "jdk.tls.disabledAlgorithms=${JAVA_DISABLE_ALGO_DEFAULT}" >> "${JAVA_SECURITY_FILENAME}" printf '%b\n' "jdk.tls.disabledAlgorithms=${JAVA_DISABLE_ALGO_DEFAULT}" >> "${JAVA_SECURITY_FILENAME}"
## Try to download main jar file from idrac host ## Try to download main jar file from idrac host
avctkmv_filename="avctKVM.jar" avctkvm_filename="avctKVM.jar"
avctkvm_url="https://${idrac_host}:${idrac_port}/software/${avctkmv_filename}" avctkvm_url="https://${idrac_host}:${idrac_port}/software/${avctkvm_filename}"
debug_message "| Try to download ${RED}${avctkmv_filename}${COLOR_DEBUG} file from URL (${RED}${avctkvm_url}${COLOR_DEBUG})." debug_message "| Try to download ${RED}${avctkvm_filename}${COLOR_DEBUG} file from URL (${RED}${avctkvm_url}${COLOR_DEBUG})."
wget --timestamping --no-check-certificate --quiet -- "${avctkvm_url}" wget --timestamping --no-check-certificate --quiet -- "${avctkvm_url}"
is_file_empty "${avctkmv_filename}" "| " \ is_file_empty "${avctkvm_filename}" "| " \
&& error_message "Downloaded ${avctkmv_filename} file is empty (from ${avctkvm_url} URL)." 22 && error_message "Downloaded ${avctkvm_filename} file is empty (from ${avctkvm_url} URL)." 22
## Librairies ## Librairies
## TODO? Download avctKVMIOLinux64.jar and avctVMLinux64.jar files to extract librairies (for keyboard…). ## TODO? Download avctKVMIOLinux64.jar and avctVMLinux64.jar files to extract librairies (for keyboard…).
## Try to start iDrac console with java ## Try to start iDrac console with java
printf '%b\n' "Try to start ${RED}${idrac_host}:${idrac_port}${RESET} virtual console with user (${RED}${idrac_username}${RESET}) and given password." printf '%b\n' "Try to start ${RED}${idrac_host}:${idrac_port}${RESET} virtual console with user (${RED}${idrac_username}${RESET}) and given password."
java -cp "${avctkmv_filename}" -Djava.security.properties=idrac.java.security -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip="${idrac_host}" kmport=5900 vport=5900 user="${idrac_username}" passwd="${idrac_password}" apcp=1 version=2 vmprivilege=true "helpurl=https://${idrac_host}:${idrac_port}/help/contents.html" java -cp "${avctkvm_filename}" -Djava.security.properties=idrac.java.security -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip="${idrac_host}" kmport=5900 vport=5900 user="${idrac_username}" passwd="${idrac_password}" apcp=1 version=2 vmprivilege=true "helpurl=https://${idrac_host}:${idrac_port}/help/contents.html"
cd -- - >/dev/null || error_message "Can't move to previous directory (before ${temp_dir})." 23 cd -- - >/dev/null || error_message "Can't move to previous directory (before ${temp_dir})." 23