added write-priv validation to BUILDDIR test
This commit is contained in:
parent
c8f9cd82e9
commit
863c595315
1 changed files with 5 additions and 5 deletions
|
@ -169,11 +169,6 @@ inline_doc
|
|||
for config_param in ${!PARAM_GROUP}; do
|
||||
# This is a tricky little piece of code.. executes a cmd string.
|
||||
case $config_param in
|
||||
BUILDDIR) # We cannot have an <empty> or </> root mount point
|
||||
echo -e "`eval echo $PARAM_VALS`"
|
||||
[[ "xx x/x" =~ "x${!config_param}x" ]] &&
|
||||
write_error_and_die
|
||||
;;
|
||||
TIMEZONE) echo -e "`eval echo $PARAM_VALS`" ;;
|
||||
|
||||
# Validate general parameters..
|
||||
|
@ -227,6 +222,11 @@ inline_doc
|
|||
# fatal -z -d -w,
|
||||
# warning -z+ -w+
|
||||
SRC_ARCHIVE) validate_dir -z+ -d -w+ ;;
|
||||
BUILDDIR) # The build directory/partition MUST exist and be writable by the user
|
||||
validate_dir -z -d -w
|
||||
[[ "xx x/x" =~ "x${!config_param}x" ]] &&
|
||||
write_error_and_die
|
||||
;;
|
||||
|
||||
# Validate files, testable states:
|
||||
# fatal -z -e -s -w -x -r,
|
||||
|
|
Reference in a new issue