~morty/fai/trunk

« back to all changes in this revision

Viewing changes to bin/fai-mirror

  • Committer: Thomas Lange
  • Date: 2018-01-20 15:43:37 UTC
  • Revision ID: git-v1:ee789a8abffa893bf69c3888b8ec3f40dffc017f
use variable instead of long path

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
EOF
313
313
 
314
314
# maybe using reprepro pulls it's possible to move instead of copy the packages
315
 
     reprepro -b $mirrordir includedeb stretch-backports $mirrordir/aptcache/var/cache/apt/archives/*~bpo[0-9]*+[0-9-]*_*.deb
316
 
     rm -f $mirrordir/aptcache/var/cache/apt/archives/*~bpo[0-9]*+[0-9-]*_*.deb
 
315
     reprepro -b $mirrordir includedeb stretch-backports $archivedir/*~bpo[0-9]*+[0-9-]*_*.deb
 
316
     rm -f $archivedir/*~bpo[0-9]*+[0-9-]*_*.deb
317
317
fi
318
318
 
319
 
reprepro -b $mirrordir includedeb cskoeln $mirrordir/aptcache/var/cache/apt/archives/*.deb
320
 
rm -r $mirrordir/aptcache/var/cache/apt/archives/*.deb
 
319
reprepro -b $mirrordir includedeb cskoeln $archivedir/*.deb
 
320
rm -r $archivedir/*.deb
321
321
 
322
322
echo "$0 finished."
323
323
echo -n "Mirror size and location: ";du -sh --exclude aptcache --exclude db $mirrordir