9 lines
335 B
Bash
9 lines
335 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
namespace=futureporn
|
||
|
pod_name=$(kubectl --namespace futureporn get pods -l app.kubernetes.io/name=drupal -o custom-columns=":metadata.name" --no-headers)
|
||
|
|
||
|
kubectl -n "${namespace}" cp ./scripts/drupal-init.sh "${pod_name}:/tmp/drupal-init.sh"
|
||
|
kubectl -n "${namespace}" exec "${pod_name}" -- bash -c "/tmp/drupal-init.sh"
|