#!/bin/bash # updates static files in the deployment without a full rebuild POD=$(sudo k3s kubectl get pods | grep website | awk '{ print $1 }') echo "Recursive copy static to $POD:/app/static/" sudo k3s kubectl exec $POD -- sh -c "rm -rf /app/static/" || echo "Error in deleting directory" sudo k3s kubectl cp static "$POD:/app/static/" || echo "Error in copying new files"