mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
Remove existing CKAN installation if present
Add command to remove existing CKAN installation
This commit is contained in:
parent
bc0910b4cd
commit
dc1bf9bcfa
1 changed files with 1 additions and 0 deletions
|
|
@ -221,6 +221,7 @@ fn main() -> Result<()> {
|
|||
config.ckan_version
|
||||
);
|
||||
cmd!(sh, "sudo apt install python3-dev libpq-dev python3-pip python3-venv git-core redis-server -y").run()?;
|
||||
cmd!(sh, "sudo rm -rf /usr/lib/ckan").run().ok(); // Remove whatever exists (ok() to ignore if nothing exists)
|
||||
cmd!(sh, "sudo mkdir -p /usr/lib/ckan/default").run()?;
|
||||
cmd!(sh, "sudo chown {username} /usr/lib/ckan/default").run()?;
|
||||
let venv_path = PathBuf::from_str("/usr/lib/ckan/default")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue