Skip to content

Commit

Permalink
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hack/manifests/storage/nfs-server.sh
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@ fi

[ -f "/etc/exports" ] && cp -a /etc/exports /etc/exports.bak

SPATH=${1:-/opt/quickon/storage/nfs}
SPATH=${1:-/opt/quickon/storage/nfs/}

[ -d "$SPATH" ] || mkdir -p $SPATH

chmod 777 $SPATH
chmod 777 -R $SPATH

echo "$SPATH *(insecure,rw,sync,no_root_squash,no_subtree_check)" > /etc/exports

5 changes: 3 additions & 2 deletions internal/pkg/util/preflight/checks.go
Original file line number Diff line number Diff line change
@@ -377,7 +377,8 @@ func (fcc FileContentCheck) Check() error {
log.Debugf("validating the contents of file %s", fcc.Path)
f, err := os.Open(fcc.Path)
if err != nil {
return errors.Errorf("%s does not exist", fcc.Path)
log.Warnf("%s does not exist", fcc.Path)
return nil
}

lr := io.LimitReader(f, int64(len(fcc.Content)))
@@ -390,7 +391,7 @@ func (fcc FileContentCheck) Check() error {
}

if !bytes.Equal(buf.Bytes(), fcc.Content) {
return errors.Errorf("%s contents are not set to %s", fcc.Path, fcc.Content)
log.Warnf("%s contents are not set to %s", fcc.Path, fcc.Content)
}
return nil
}

0 comments on commit c2c952c

Please sign in to comment.