mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
fix: lychee-sync
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user