mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
Remove existing CKAN directory if it exists
Add command to remove existing CKAN directory before creating a new one.
This commit is contained in:
parent
dc1bf9bcfa
commit
aaf4655690
1 changed files with 1 additions and 0 deletions
|
|
@ -234,6 +234,7 @@ fn main() -> Result<()> {
|
|||
)
|
||||
.as_str(),
|
||||
)?;
|
||||
cmd!(sh, "sudo rm -rf /etc/ckan").run().ok(); // Remove whatever exists
|
||||
cmd!(sh, "sudo mkdir -p /etc/ckan/default").run()?;
|
||||
cmd!(sh, "sudo chown -R {username} /etc/ckan/").run()?;
|
||||
cmd!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue