src/api2/config/datastore.rs - create: pass uid and gid instead of User
This commit is contained in:
1 parent
e67770d496
commit
645995634a
2 files changed
+7
-6
No files matched your search
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user