Skip to content

Commit 75e8129

Browse files
committed
fix: permission warn
1 parent c2617f2 commit 75e8129

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/cli/src/docker_init.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,15 @@ pub fn handle_docker_init(config_path: String, output_dir: String) -> Result<()>
520520
}
521521
println!("\n");
522522
}
523+
// if file logging is enabled, warn about permissions
524+
if let Some(logs_config) = cb_config.logs {
525+
let log_dir = logs_config.log_dir_path;
526+
println!(
527+
"Warning: file logging is enabled, you may need to update permissions for the logs directory. e.g. with:\n\t`sudo chown -R 10001:10001 {}`",
528+
log_dir.display()
529+
);
530+
}
531+
523532
println!("Compose file written to: {:?}", compose_path);
524533

525534
// write prometheus targets to file

0 commit comments

Comments
 (0)