From 5605701973d591b977b070d0dd6a130eec93013e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 Feb 2012 22:24:52 +0100 Subject: Adding opt-in hook to remove all sources.list files, as it's desirable in some setups. --- share/hooks/009-remove-apt-sources-lists.chroot | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 share/hooks/009-remove-apt-sources-lists.chroot diff --git a/share/hooks/009-remove-apt-sources-lists.chroot b/share/hooks/009-remove-apt-sources-lists.chroot new file mode 100755 index 000000000..074b551a1 --- /dev/null +++ b/share/hooks/009-remove-apt-sources-lists.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Remove apt sources.list files + +rm -f /etc/apt/sources.list +rm -f /etc/apt/sources.list~ +rm -f /etc/apt/sources.list.d/*.list -- cgit v1.2.3