From 06b7cb962b29dbe03b5262fe1cef47f46c85dcd8 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 13 May 2021 23:37:25 -0700 Subject: [PATCH] do not remove mount file if mountType was no-op we might end up removing user's systemd file --- src/volumes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volumes.js b/src/volumes.js index d2bac69c3..c4ac6c7bb 100644 --- a/src/volumes.js +++ b/src/volumes.js @@ -252,7 +252,7 @@ async function del(volume, auditSource) { eventlog.add(eventlog.ACTION_VOLUME_REMOVE, auditSource, { volume }); services.rebuildService('sftp', async function () { - await safe(removeMountFile(volume)); + if (volume.mountType !== 'noop') await safe(removeMountFile(volume)); }); collectd.removeProfile(volume.id, NOOP_CALLBACK); }