Pārlūkot izejas kodu

Delete old metadata files before sync

main
Sindre Stephansen pirms 2 gadiem
vecāks
revīzija
0da1e6a2c4
Parakstījis: sindre <sindre@sindrestephansen.com> GPG atslēgas ID: B06FC67D17A46ADE
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      run.sh

+ 3
- 0
run.sh Parādīt failu

@@ -7,6 +7,9 @@ group=$(stat -c "%g" .)
if [ ! -d ./data ]; then
mkdir ./data
chown "$user:$group" ./data
else
# Delete old metadata files to force reposilite to fetch the latest updates.
find data \( -name maven-metadata.xml -o -name "*.module" \) -exec rm {} \;
fi

USER_ID=$user GROUP_ID=$group docker-compose up --build --exit-code-from sync-job


Notiek ielāde…
Atcelt
Saglabāt