vn-host/update-repo

17 lines
272 B
Plaintext
Raw Normal View History

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