mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Testing for archive reachability is different for each archive system, but necessary for all systems.
This commit is contained in:
@@ -26,7 +26,9 @@ function fix_errors_in_mounted_files () {
|
||||
|
||||
function archive_is_reachable () {
|
||||
local reachable=true
|
||||
hping3 -c 1 -S -p 445 "$ARCHIVE_HOST_NAME" > /dev/null 2>&1 || reachable=false
|
||||
|
||||
/root/bin/archive-is-reachable.sh || reachable=false
|
||||
|
||||
if [ "$reachable" = false ]
|
||||
then
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user