mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 21:39:49 +00:00
Remove mailcatcher container before ckan-compose up
Added command to remove mailcatcher container before starting ckan-compose.
This commit is contained in:
parent
4aab934857
commit
bc0910b4cd
1 changed files with 2 additions and 1 deletions
|
|
@ -210,7 +210,8 @@ fn main() -> Result<()> {
|
||||||
std::fs::write(format!("/home/{username}/ckan-compose/.env"), env_data)?;
|
std::fs::write(format!("/home/{username}/ckan-compose/.env"), env_data)?;
|
||||||
cmd!(sh, "sudo ../ahoy down").run()?;
|
cmd!(sh, "sudo ../ahoy down").run()?;
|
||||||
cmd!(sh, "sudo docker system prune -f").run()?;
|
cmd!(sh, "sudo docker system prune -f").run()?;
|
||||||
cmd!(sh, "sudo ../ahoy up").run()?;
|
// Replace the `sudo ../ahoy up` line with:
|
||||||
|
cmd!(sh, "sudo docker container rm -f ckan-compose_mailcatcher_1").run().ok(); // ok() to ignore if it doesn't exist
|
||||||
cmd!(sh, "sudo ../ahoy up").run()?;
|
cmd!(sh, "sudo ../ahoy up").run()?;
|
||||||
println!("{}", success_text("✅ 5. Successfully ran ckan-compose."));
|
println!("{}", success_text("✅ 5. Successfully ran ckan-compose."));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue