mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
feat(docs): add uninstall subcommand to uninstall page, remove preset option
This commit is contained in:
parent
e3da0a573d
commit
efdc0f93fd
2 changed files with 8 additions and 13 deletions
|
|
@ -36,17 +36,6 @@ export default function Builder() {
|
||||||
|
|
||||||
// Update command string when user changes configuration
|
// Update command string when user changes configuration
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let presetString = "";
|
|
||||||
if (config.extensions.length === 0 && config.features.length === 0)
|
|
||||||
presetString = ` \\\n--preset ckan-only`;
|
|
||||||
else if (
|
|
||||||
config.ckanVersion === "2.11.3" &&
|
|
||||||
config.extensions.includes("DataPusher+") &&
|
|
||||||
config.extensions.includes("ckanext-scheming") &&
|
|
||||||
config.extensions.includes("DataStore") &&
|
|
||||||
config.features.includes("enable-ssh")
|
|
||||||
)
|
|
||||||
presetString = ` \\\n--preset dathere-default`;
|
|
||||||
const ckanVersionString = `--ckan-version ${config.ckanVersion}`;
|
const ckanVersionString = `--ckan-version ${config.ckanVersion}`;
|
||||||
const extensionsString =
|
const extensionsString =
|
||||||
config.extensions.length > 0
|
config.extensions.length > 0
|
||||||
|
|
@ -57,7 +46,7 @@ export default function Builder() {
|
||||||
? ` \\\n--features ${config.features.join(" ")}`
|
? ` \\\n--features ${config.features.join(" ")}`
|
||||||
: undefined;
|
: undefined;
|
||||||
setCommand(
|
setCommand(
|
||||||
`./ckan-devstaller${presetString} \\
|
`./ckan-devstaller \\
|
||||||
${ckanVersionString}${extensionsString ? extensionsString : ""}${featuresString ? featuresString : ""}`,
|
${ckanVersionString}${extensionsString ? extensionsString : ""}${featuresString ? featuresString : ""}`,
|
||||||
);
|
);
|
||||||
}, [config]);
|
}, [config]);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,13 @@ description: How to uninstall CKAN after having installed with ckan-devstaller
|
||||||
|
|
||||||
You may want to uninstall CKAN and related files after having ran ckan-devstaller. This can be useful if you want to re-run ckan-devstaller with a different configuration or are developing ckan-devstaller.
|
You may want to uninstall CKAN and related files after having ran ckan-devstaller. This can be useful if you want to re-run ckan-devstaller with a different configuration or are developing ckan-devstaller.
|
||||||
|
|
||||||
Run the following script to uninstall CKAN and files related to ckan-devstaller:
|
The uninstallation process can be done by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./ckan-devstaller uninstall
|
||||||
|
```
|
||||||
|
|
||||||
|
The following script will be ran to uninstall CKAN and files related to ckan-devstaller:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo rm -rf /usr/lib/ckan
|
sudo rm -rf /usr/lib/ckan
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue