diff --git a/src/volumes.js b/src/volumes.js index cd07b7eaf..6419256ed 100644 --- a/src/volumes.js +++ b/src/volumes.js @@ -122,6 +122,9 @@ async function update(volume, mountType, mountOptions) { const result = await database.query('UPDATE volumes SET mountOptionsJson=? WHERE id=?', [ JSON.stringify(mountOptions), volume.id ]); if (result.affectedRows !== 1) throw new BoxError(BoxError.NOT_FOUND, 'Volume not found'); + + // when diskPath or remoteDir is changed, we have to "rebind" the docker volumes + services.rebuildService('sftp', NOOP_CALLBACK); } async function getStatus(volume) {