This commit is contained in:
11
proxDoc.sh
11
proxDoc.sh
@@ -63,14 +63,21 @@ show_progress() {
|
|||||||
|
|
||||||
check_requirements() {
|
check_requirements() {
|
||||||
log_message info "Checking medical equipment..."
|
log_message info "Checking medical equipment..."
|
||||||
local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci")
|
local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci" "bc")
|
||||||
|
local missing=()
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
if ! command -v "$tool" >/dev/null 2>&1; then
|
if ! command -v "$tool" >/dev/null 2>&1; then
|
||||||
handle_error "Required instrument '$tool' is missing"
|
missing+=("$tool")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ ${#missing[@]} -gt 0 ]]; then
|
||||||
|
handle_error "Missing tools: ${missing[*]}\n Please install with 'curl -s http://10.10.10.63:3000/LotusGuild/freshStartScript/raw/branch/main/freshStart.sh | bash'"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
checkIfOnHypervisor() {
|
checkIfOnHypervisor() {
|
||||||
if ! command -v pveversion >/dev/null 2>&1; then
|
if ! command -v pveversion >/dev/null 2>&1; then
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user