backups: fix mounting logic of backup settings and cloudron restore
This commit is contained in:
@@ -31,6 +31,7 @@ exports = module.exports = {
|
||||
configureCollectd,
|
||||
|
||||
generateEncryptionKeysSync,
|
||||
isMountProvider,
|
||||
|
||||
BACKUP_IDENTIFIER_BOX: 'box',
|
||||
|
||||
@@ -116,6 +117,10 @@ function api(provider) {
|
||||
}
|
||||
}
|
||||
|
||||
function isMountProvider(provider) {
|
||||
return provider === 'sshfs' || provider === 'cifs' || provider === 'nfs' || provider === 'ext4';
|
||||
}
|
||||
|
||||
function injectPrivateFields(newConfig, currentConfig) {
|
||||
if ('password' in newConfig) {
|
||||
if (newConfig.password === constants.SECRET_PLACEHOLDER) {
|
||||
|
||||
Reference in New Issue
Block a user