Remove client side backup configuration checks

This commit is contained in:
Johannes Zellner
2019-02-06 15:48:35 +01:00
parent 63b42d64b1
commit 7ec12f487b

View File

@@ -88,18 +88,6 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
Client.notify('Update Available', 'Update now to version ' + $scope.config.update.box.version + '.', true, 'success', '/#/settings');
}
Client.getBackupConfig(function (error, backupConfig) {
if (error) return console.error(error);
if (backupConfig.provider === 'noop') {
Client.notify('Backup Configuration', 'Cloudron backups are disabled. Please ensure this server is backed up using alternate means.', false, 'info', '/#/backups');
} else if (backupConfig.provider === 'filesystem' && !backupConfig.externalDisk) {
Client.notify('Backup Configuration',
'Cloudron backups are currently on the same disk as the Cloudron server instance. This is dangerous and can lead to complete data loss if the disk fails.',
false /* persistent */, 'info', '/#/backups');
}
});
Client.isRebootRequired(function (error, isRequired) {
if (error) return console.error(error);
if (!isRequired) return;