fix: lychee-sync

This commit is contained in:
auricom
2024-08-05 23:26:34 +02:00
parent 0c16a3cbc7
commit 0dd8a59d88

View File

@@ -51,7 +51,7 @@ spec:
result=$(kubectl get pod --selector app.kubernetes.io/name=lychee --output custom-columns=:metadata.name --namespace default) result=$(kubectl get pod --selector app.kubernetes.io/name=lychee --output custom-columns=:metadata.name --namespace default)
LYCHEE_POD=$(echo $result | awk '{ print $NF }') LYCHEE_POD=$(echo $result | awk '{ print $NF }')
if [[ $LYCHEE_POD == *"lychee"* ]]; then if [[ $LYCHEE_POD == *"lychee"* ]]; then
kubectl exec --stdin --container main $LYCHEE_POD -- php artisan lychee:sync /mnt/storage/photo/Gallery/ --skip_duplicates=1 kubectl exec --stdin --container app $LYCHEE_POD -- php artisan lychee:sync /mnt/storage/photo/Gallery/ --skip_duplicates=1
else else
echo "lychee deployment not found" echo "lychee deployment not found"
exit 1 exit 1