Skip to content

Commit 48cc6ed

Browse files
authored
Remove info extraction from SnapRAID config
These functions are now handled in the main script. Needed for SnapRAID config file discovery.
1 parent ac4c172 commit 48cc6ed

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

script-config.conf

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -278,18 +278,3 @@ SECONDS=0 #Capture time
278278

279279
# Expand PATH for smartctl
280280
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
281-
282-
# Extract info from SnapRAID config
283-
SNAPRAID_CONF_LINES=$(grep -E '^[^#;]' $SNAPRAID_CONF)
284-
285-
IFS=$'\n'
286-
# Build an array of content files
287-
CONTENT_FILES=(
288-
$(echo "$SNAPRAID_CONF_LINES" | grep snapraid.content | cut -d ' ' -f2)
289-
)
290-
291-
# Build an array of parity all files...
292-
PARITY_FILES=(
293-
$(echo "$SNAPRAID_CONF_LINES" | grep -E '^([2-6z]-)*parity' | cut -d ' ' -f2- | tr ',' '\n')
294-
)
295-
unset IFS

0 commit comments

Comments
 (0)