mirror of
https://github.com/nicotsx/zerobyte.git
synced 2025-12-10 12:10:51 +01:00
feat: mount volumes on startup
This commit is contained in:
@@ -69,6 +69,11 @@ const unmount = async (path: string) => {
|
||||
logger.error(`Error unmounting NFS volume: ${stderr}`);
|
||||
return reject(new Error(`Failed to unmount NFS volume: ${stderr}`));
|
||||
}
|
||||
|
||||
fs.rmdir(path).catch((rmdirError) => {
|
||||
logger.error(`Failed to remove directory ${path}:`, rmdirError);
|
||||
});
|
||||
|
||||
logger.info(`NFS volume unmounted successfully: ${stdout}`);
|
||||
resolve();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user