Fix type in var name
This commit is contained in:
parent
36f9d85979
commit
6ad4deabef
|
@ -266,7 +266,6 @@ The file ${RED}${local_file}${COLOR_DEBUG} exists and has a size greater than ze
|
|||
unset debug_prefix
|
||||
|
||||
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}"
|
||||
|
||||
## Try to download main jar file from idrac host
|
||||
avctkmv_filename="avctKVM.jar"
|
||||
avctkvm_url="https://${idrac_host}:${idrac_port}/software/${avctkmv_filename}"
|
||||
debug_message "| Try to download ${RED}${avctkmv_filename}${COLOR_DEBUG} file from URL (${RED}${avctkvm_url}${COLOR_DEBUG})."
|
||||
avctkvm_filename="avctKVM.jar"
|
||||
avctkvm_url="https://${idrac_host}:${idrac_port}/software/${avctkvm_filename}"
|
||||
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}"
|
||||
is_file_empty "${avctkmv_filename}" "| " \
|
||||
&& error_message "Downloaded ${avctkmv_filename} file is empty (from ${avctkvm_url} URL)." 22
|
||||
is_file_empty "${avctkvm_filename}" "| " \
|
||||
&& error_message "Downloaded ${avctkvm_filename} file is empty (from ${avctkvm_url} URL)." 22
|
||||
|
||||
## Librairies
|
||||
## TODO? Download avctKVMIOLinux64.jar and avctVMLinux64.jar files to extract librairies (for keyboard…).
|
||||
|
||||
## 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."
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue