fix(nextcloud): Include namespace in cp

This commit is contained in:
Tibo De Peuter 2024-05-03 18:33:46 +02:00
parent 03e1d3266c
commit 7f801e6430
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -67,7 +67,7 @@ k3s kubectl exec "${database_container}" --namespace "${namespace}" -- env $(cat
# Files backup
for file in 'config' 'themes'; do
printf "Copying %s\n" "${file}"
k3s kubectl cp "${base_container}":"/var/www/html/${file}" "${destination}"
k3s kubectl --namespace "${namespace}" cp "${base_container}":"/var/www/html/${file}" "${destination}"
done
# Turn off maintenance mode