Update 2 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 13s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 13s
This commit is contained in:
@@ -14,9 +14,9 @@ WEB_PORT=8080
|
|||||||
INFLUXDB_PORT=8086
|
INFLUXDB_PORT=8086
|
||||||
|
|
||||||
# Devices to monitor - space-separated list of block devices
|
# Devices to monitor - space-separated list of block devices
|
||||||
# Example: "/dev/sda /dev/sdb /dev/nvme0n1"
|
# Can use short names (sda sdb) or full paths (/dev/sda /dev/sdb)
|
||||||
# Leave empty to auto-detect (requires --privileged mode)
|
# Example: "sda sdb nvme0n1"
|
||||||
DEVICES="/dev/sda"
|
DEVICES="sda"
|
||||||
|
|
||||||
# Set to "true" to run in privileged mode (auto-detects all devices)
|
# Set to "true" to run in privileged mode (auto-detects all devices)
|
||||||
# Set to "false" to use explicit DEVICES list above
|
# Set to "false" to use explicit DEVICES list above
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ if [ "$PRIVILEGED_MODE" = "true" ]; then
|
|||||||
DEVICE_ARGS="--privileged"
|
DEVICE_ARGS="--privileged"
|
||||||
else
|
else
|
||||||
for dev in $DEVICES; do
|
for dev in $DEVICES; do
|
||||||
|
# Auto-prepend /dev/ if not already a path
|
||||||
|
if [[ "$dev" != /* ]]; then
|
||||||
|
dev="/dev/$dev"
|
||||||
|
fi
|
||||||
if [ -e "$dev" ]; then
|
if [ -e "$dev" ]; then
|
||||||
DEVICE_ARGS="$DEVICE_ARGS --device=$dev"
|
DEVICE_ARGS="$DEVICE_ARGS --device=$dev"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user