Remove client side backup configuration checks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user