mirror of https://gitee.com/bigwinds/arangodb
Only prohibit unmounting system apps mounted at system paths.
This commit is contained in:
parent
af2b1c1ff6
commit
a85bc09de4
|
@ -1236,7 +1236,7 @@ exports.unmount = function (mount) {
|
|||
|
||||
var doc = mountFromId(mount);
|
||||
|
||||
if (doc.isSystem) {
|
||||
if (doc.isSystem && (mount.charAt(1) === '_' || mount.indexOf('system') === 1)) {
|
||||
throw new Error("Cannot unmount system application");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue