src/api2/config/datastore.rs - create: pass uid and gid instead of User

This commit is contained in:
Dietmar Maurer
2019-12-20 09:23:58 +01:00
parent e67770d496
commit 645995634a
2 changed files with 7 additions and 6 deletions

View File

@ -60,7 +60,7 @@ fn create_datastore(
let path: PathBuf = param["path"].as_str().unwrap().into();
let backup_user = crate::backup::backup_user()?;
let _store = ChunkStore::create(name, path, backup_user)?;
let _store = ChunkStore::create(name, path, backup_user.uid, backup_user.gid)?;
let datastore = json!({
"path": param["path"],