provider-rke2/scripts/import.sh
Santhosh 9a5e4a28a9 local images import
add rke2 bin to path

Signed-off-by: Santhosh <santhosh@spectrocloud.com>
2023-02-24 23:00:01 +05:30

8 lines
190 B
Bash

#!/bin/bash -x
CONTENT_PATH=$1
mkdir -p /var/lib/rancher/k3s/agent/images
for tarfile in $(find $CONTENT_PATH -name "*.tar" -type f)
do
cp $tarfile /var/lib/rancher/rke2/agent/images
done