mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
pass plugin to uninstall
This commit is contained in:
@@ -869,7 +869,7 @@ some code to remove a docker hub tag because it's not implemented in the CLI....
|
||||
### `uninstall`
|
||||
- Description: Used to cleanup after itself.
|
||||
- Invoked by: `dokku plugin:uninstall`
|
||||
- Arguments: None
|
||||
- Arguments: `$PLUGIN`
|
||||
- Example:
|
||||
|
||||
```shell
|
||||
@@ -878,7 +878,9 @@ some code to remove a docker hub tag because it's not implemented in the CLI....
|
||||
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
docker rmi -f "${PLUGIN_IMAGE_DEPENDENCY}"
|
||||
PLUGIN="$1"
|
||||
|
||||
[[ "$PLUGIN" = "my-plugin" ]] && docker rmi -f "${PLUGIN_IMAGE_DEPENDENCY}"
|
||||
```
|
||||
|
||||
### `update`
|
||||
|
||||
@@ -70,7 +70,7 @@ uninstall_plugin() {
|
||||
local PLUGIN="$1"
|
||||
[[ -e $PLUGIN_CORE_AVAILABLE_PATH/$PLUGIN ]] && dokku_log_fail "Cannot uninstall a core plugin"
|
||||
[[ ! -e $PLUGIN_AVAILABLE_PATH/$PLUGIN ]] && dokku_log_fail "Plugin ($PLUGIN) is not currently installed"
|
||||
plugn trigger uninstall
|
||||
plugn trigger uninstall "$PLUGIN"
|
||||
plugn uninstall "$PLUGIN"
|
||||
dokku_log_info1_quiet "Plugin $PLUGIN uninstalled"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user