Treating unfinished jobs + start_chart
This commit is contained in:
parent
b34716210e
commit
8320cec425
8 changed files with 87 additions and 12 deletions
|
@ -2,12 +2,20 @@
|
|||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
USER_HOME=$HOME
|
||||
[[ -n "${SUDO_USER}" ]] && USER_HOME="$(eval "echo ~${SUDO_USER}")"
|
||||
. ${SHRC_D:-$USER_HOME/.pqb.shrc.d}/01_util.functions
|
||||
. ${SHRC_D:-$USER_HOME/.sz.shrc.d}/01_util.functions
|
||||
|
||||
set -e
|
||||
|
||||
get_charts() {
|
||||
midclt call chart.release.query | jq -r '.[] | select( .status != "STOPPED" ) | .id'
|
||||
midclt call chart.release.query | jq -r '
|
||||
del(.[]
|
||||
| select( .status == "STOPPED" or (.id|inside(
|
||||
"traefik",
|
||||
"plex-pms"
|
||||
))
|
||||
))
|
||||
| .[].id
|
||||
'
|
||||
}
|
||||
|
||||
stop_chart() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue