diff options
author | PradeepKiruvale <pradeepkumar.kj@softwareag.com> | 2022-06-29 16:46:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 16:46:40 +0530 |
commit | ddd2f09972f1c67ee562a3ccf5c22c92890b4eaa (patch) | |
tree | 4893ee865cf68ffb282079683b7993a4452a893a /crates/core | |
parent | 9b8d8c8ecb081176350adefb9d3d2d468ba625d5 (diff) |
c8y_configuration_plugin --init and c8y_log_plugin --init are overwriting exiting files (#1217)
--init should not overwrite the existing files
Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
Diffstat (limited to 'crates/core')
-rw-r--r-- | crates/core/tedge_mapper/src/c8y/mapper.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/core/tedge_mapper/src/c8y/mapper.rs b/crates/core/tedge_mapper/src/c8y/mapper.rs index 8ea3b4fc..81068adb 100644 --- a/crates/core/tedge_mapper/src/c8y/mapper.rs +++ b/crates/core/tedge_mapper/src/c8y/mapper.rs @@ -110,12 +110,14 @@ fn create_directories(config_dir: &str) -> Result<(), anyhow::Error> { "tedge", "tedge", 0o644, + None, )?; create_file_with_user_group( &format!("{config_dir}/operations/c8y/c8y_Restart"), "tedge", "tedge", 0o644, + None, )?; Ok(()) } |