mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
Update path for dpp_default_config.ini
This commit is contained in:
parent
581d326e38
commit
f452482d12
1 changed files with 5 additions and 2 deletions
|
|
@ -441,12 +441,15 @@ ckanext.datapusher_plus.file_bin = /usr/bin/file
|
||||||
ckanext.datapusher_plus.enable_druf = false
|
ckanext.datapusher_plus.enable_druf = false
|
||||||
ckanext.datapusher_plus.enable_form_redirect = true
|
ckanext.datapusher_plus.enable_form_redirect = true
|
||||||
"#;
|
"#;
|
||||||
std::fs::write("dpp_default_config.ini", dpp_default_config)?;
|
|
||||||
|
let dpp_config_path = format!("/home/{username}/dpp_default_config.ini");
|
||||||
|
std::fs::write(&dpp_config_path, dpp_default_config)?;
|
||||||
cmd!(
|
cmd!(
|
||||||
sh,
|
sh,
|
||||||
"ckan config-tool /etc/ckan/default/ckan.ini -f dpp_default_config.ini"
|
"ckan config-tool /etc/ckan/default/ckan.ini -f {dpp_config_path}"
|
||||||
)
|
)
|
||||||
.run()?;
|
.run()?;
|
||||||
|
|
||||||
let resource_formats_str = std::fs::read_to_string(
|
let resource_formats_str = std::fs::read_to_string(
|
||||||
"/usr/lib/ckan/default/src/ckan/config/resource_formats.json",
|
"/usr/lib/ckan/default/src/ckan/config/resource_formats.json",
|
||||||
)?;
|
)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue