vn-host/update-repo

16 lines
236 B
Plaintext
Raw Normal View History

2016-10-20 12:06:13 +00:00
#!/bin/bash
REPO_FILE=$1
if [ -z "$REPO_FILE" ]
then
echo "Usage: $0 repo_file"
exit 1
fi
apt-get update \
-o Dir::Etc::sourcelist="sources.list.d/$REPO_FILE.list" \
-o Dir::Etc::sourceparts="-" \
-o APT::Get::List-Cleanup="0"