mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
dynamic host volumes: fingerprint client plugins (#24589)
This commit is contained in:
committed by
Tim Gross
parent
df258ac02a
commit
46a39560bb
@@ -53,8 +53,8 @@ if [[ "$OSTYPE" == "linux-"* ]]; then
|
||||
ext=ext4
|
||||
mount=/usr/bin/mount
|
||||
mkfsExec() {
|
||||
dd if=/dev/zero of="$1".$ext bs=1M count="$2"
|
||||
mkfs.ext4 "$1".$ext 1>&2
|
||||
dd if=/dev/zero of="$1".$ext bs=1M count="$2"
|
||||
mkfs.ext4 "$1".$ext 1>&2
|
||||
}
|
||||
mountExec() {
|
||||
$mount "$1".$ext "$1"
|
||||
@@ -76,7 +76,7 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
}
|
||||
else
|
||||
echo "$OSTYPE is an unsupported OS"
|
||||
return 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
validate_path() {
|
||||
@@ -88,7 +88,7 @@ validate_path() {
|
||||
}
|
||||
|
||||
is_mounted() {
|
||||
$mount | grep -q "^$1$"
|
||||
$mount | grep -q " $1 "
|
||||
}
|
||||
|
||||
create_volume() {
|
||||
|
||||
Reference in New Issue
Block a user