mirror of
https://github.com/caprover/caprover
synced 2025-10-30 10:07:01 +00:00
Fixed Volume Name and Path Check Path
This commit is contained in:
@@ -130,11 +130,13 @@ class AppsDataStore {
|
||||
)
|
||||
}
|
||||
|
||||
if (obj.hostPath && !isValidPath(obj.hostPath)) {
|
||||
throw ApiStatusCodes.createError(
|
||||
ApiStatusCodes.STATUS_ERROR_GENERIC,
|
||||
'Invalid volume host path: ' + obj.hostPath
|
||||
)
|
||||
if (obj.hostPath) {
|
||||
if (!isValidPath(obj.hostPath)) {
|
||||
throw ApiStatusCodes.createError(
|
||||
ApiStatusCodes.STATUS_ERROR_GENERIC,
|
||||
'Invalid volume host path: ' + obj.hostPath
|
||||
)
|
||||
}
|
||||
} else {
|
||||
if (
|
||||
!obj.volumeName ||
|
||||
|
||||
Reference in New Issue
Block a user