apt path fix

This commit is contained in:
parazyd 2017-05-22 00:55:39 +02:00
parent ed4dedfcd0
commit 0df3f14cdd
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ fill_apt_cache() {
notice "filling local apt cache"
cp -fv "$strapdir/var/cache/archives/*.deb" "$aptcachedir"
cp -fv $strapdir/var/cache/apt/archives/*.deb $aptcachedir
pushd "$aptcachedir"
dpkg-scanpackages . /dev/null > Packages
@ -72,7 +72,7 @@ EOF
popd
sudo sed -i -e '@deb file:/mnt@d' "$strapdir/etc/apt/sources.list"
sudo sed -i '/deb file:\/mnt/d' "$strapdir/etc/apt/sources.list"
notice "removing apt cache gpg pubkey"
cat <<EOF | sudo tee ${strapdir}/delcachepubkey >/dev/null
#!/bin/sh