fix: properly parse input from ps-current-scale

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-08-01 01:53:46 -04:00
1 parent 213f7d224c
commit 550a0bd07b
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ check_all_processes() {
fi fi
check_process_type "$APP" "$PROC_TYPE" "$PROC_COUNT" check_process_type "$APP" "$PROC_TYPE" "$PROC_COUNT"
done <"$(plugn trigger ps-current-scale "$APP")" done < <(plugn trigger ps-current-scale "$APP")
if [[ "$VALID_CHECK_PROC_TYPE" == "false" ]]; then if [[ "$VALID_CHECK_PROC_TYPE" == "false" ]]; then
dokku_log_fail "Invalid process type specified ($APP.$CHECK_PROC_TYPE)" dokku_log_fail "Invalid process type specified ($APP.$CHECK_PROC_TYPE)"
+1 -1
View File
@@ -518,7 +518,7 @@ nginx_build_config() {
UPP_PROC_TYPE="${PROC_TYPE^^}" UPP_PROC_TYPE="${PROC_TYPE^^}"
UPP_PROC_TYPE="${UPP_PROC_TYPE//-/_}" UPP_PROC_TYPE="${UPP_PROC_TYPE//-/_}"
SIGIL_PARAMS+=("DOKKU_APP_${UPP_PROC_TYPE}_LISTENERS=$LISTENERS") SIGIL_PARAMS+=("DOKKU_APP_${UPP_PROC_TYPE}_LISTENERS=$LISTENERS")
done <"$(plugn trigger ps-current-scale "$APP")" done < <(plugn trigger ps-current-scale "$APP")
if grep DOKKU_APP_LISTENERS "$NGINX_TEMPLATE"; then if grep DOKKU_APP_LISTENERS "$NGINX_TEMPLATE"; then
dokku_log_warn "Deprecated: Usage of DOKKU_APP_LISTENERS within nginx.conf.sigil templates is deprecated in favor of DOKKU_APP_WEB_LISTENERS" dokku_log_warn "Deprecated: Usage of DOKKU_APP_LISTENERS within nginx.conf.sigil templates is deprecated in favor of DOKKU_APP_WEB_LISTENERS"
@@ -177,7 +177,7 @@ trigger-scheduler-docker-local-scheduler-deploy() {
cd "$DOKKU_ROOT/$APP" cd "$DOKKU_ROOT/$APP"
find . -maxdepth 1 -name "$container_state_filetype.$PROC_TYPE.*" -printf "%f\n" | sort -t . -k 3 -n | tail -n +$CONTAINER_IDX_OFFSET | xargs rm -f find . -maxdepth 1 -name "$container_state_filetype.$PROC_TYPE.*" -printf "%f\n" | sort -t . -k 3 -n | tail -n +$CONTAINER_IDX_OFFSET | xargs rm -f
done done
done <"$(plugn trigger ps-current-scale "$APP")" done < <(plugn trigger ps-current-scale "$APP")
dokku_log_info1 "Running post-deploy" dokku_log_info1 "Running post-deploy"
plugn trigger core-post-deploy "$APP" "$port" "$ipaddr" "$IMAGE_TAG" plugn trigger core-post-deploy "$APP" "$port" "$ipaddr" "$IMAGE_TAG"