diff options
author | Holger Paradies <retabell@gmx.de> | 2013-11-11 23:58:53 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2013-11-12 00:03:49 +0100 |
commit | 01d0d14f5ee949e34a45811cf1b17178ceecb6a1 (patch) | |
tree | a075781d5a7809d8cfaa5c86c091768dead419e0 /config/chroot_local-hooks | |
parent | 7c6bb87f20164979d8f197523e8268d626dcf6db (diff) | |
download | kanotix-01d0d14f5ee949e34a45811cf1b17178ceecb6a1.zip kanotix-01d0d14f5ee949e34a45811cf1b17178ceecb6a1.tar.gz |
fix chrome
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/00-sources.list | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list index 49eaf04..976b539 100755 --- a/config/chroot_local-hooks/00-sources.list +++ b/config/chroot_local-hooks/00-sources.list @@ -1,5 +1,10 @@ #!/bin/sh for file in /root/config/*; do [ -r $file ] && . $file; done -sed -i -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list +for x in /etc/apt/sources.list.d/*.list; do + if grep -q '### THIS FILE IS AUTOMATICALLY CONFIGURED ###' $x; then + rm -f $x + fi +done +sed -i -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list |