filesystem: rename backupFolder to backupDir
This commit is contained in:
+3
-3
@@ -127,13 +127,13 @@ async function getFilesystems() {
|
||||
|
||||
for (const backupTarget of await backupTargets.list(1, 100)) {
|
||||
if (backupTarget.provider === 'filesystem') {
|
||||
const [, dfResult] = await safe(df.file(backupTarget.config.backupFolder));
|
||||
const [, dfResult] = await safe(df.file(backupTarget.config.backupDir));
|
||||
const filesystem = dfResult?.filesystem || rootDisk.filesystem;
|
||||
if (filesystems[filesystem]) filesystems[filesystem].contents.push({ type: 'cloudron-backup', id: backupTarget.id, path: backupTarget.config.backupFolder });
|
||||
if (filesystems[filesystem]) filesystems[filesystem].contents.push({ type: 'cloudron-backup', id: backupTarget.id, path: backupTarget.config.backupDir });
|
||||
}
|
||||
|
||||
// often the default backup dir is not cleaned up
|
||||
if (backupTarget.provider !== 'filesystem' || backupTarget.config.backupFolder !== paths.DEFAULT_BACKUP_DIR) {
|
||||
if (backupTarget.provider !== 'filesystem' || backupTarget.config.backupDir !== paths.DEFAULT_BACKUP_DIR) {
|
||||
const [, dfResult] = await safe(df.file(paths.DEFAULT_BACKUP_DIR));
|
||||
const filesystem = dfResult?.filesystem || rootDisk.filesystem;
|
||||
if (filesystems[filesystem]) filesystems[filesystem].contents.push({ type: 'cloudron-backup-default', id: 'cloudron-backup-default', path: paths.DEFAULT_BACKUP_DIR });
|
||||
|
||||
Reference in New Issue
Block a user