Skip to content

Commit bb076fa

Browse files
committed
fix prestop hook
1 parent 4c02489 commit bb076fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/ps-pre-stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88

99
LOG_FILE=/var/lib/mysql/pre-stop.log
1010
NAMESPACE=$(</var/run/secrets/kubernetes.io/serviceaccount/namespace)
11-
OPERATOR_PASSWORD=$(jq -rn --arg x "$(</etc/mysql/mysql-users-secret/operator)" '$x|@uri')
11+
OPERATOR_PASSWORD=$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$(</etc/mysql/mysql-users-secret/operator)")
1212
FQDN="${HOSTNAME}.${SERVICE_NAME}.${NAMESPACE}"
1313
POD_IP=$(hostname -I | awk '{print $1}')
1414

0 commit comments

Comments
 (0)