@@ -76,7 +76,12 @@ async function getStatus(config) {
|
||||
hostPath = config.backupDir;
|
||||
}
|
||||
|
||||
return await mounts.getStatus(config._provider, hostPath); // { state, message }
|
||||
const status = await mounts.getStatus(config._provider, hostPath); // { state, message }
|
||||
if (config._provider === mounts.MOUNT_TYPE_FILESYSTEM && status.state === 'active') {
|
||||
status.message = 'Backups are stored on the same disk as Cloudron. If the disk fills up or fails, Cloudron may stop working and data could be lost. <a href="https://docs.cloudron.io/backups/#storage-providers" target="_blank">Learn how to store backups externally.</a>';
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
function hasChownSupportSync(config) {
|
||||
|
||||
Reference in New Issue
Block a user