X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F33-aptsetup;h=c8c348f73316807bbf2c314b510bd6ddb4449961;hb=b010f18faf82ff5dbd5fb972fa4ff2b164ab0e07;hp=0edf2f22897c50142953e7abceb4ffeeb87c7162;hpb=02b32aa7fe4022fdefc80552539ecba4f1067492;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup b/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup index 0edf2f2..c8c348f 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup @@ -1,22 +1,18 @@ -#!/bin/sh -# Filename: /etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/33-aptsetup # Purpose: configure Debian package management of live-system # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sun Sep 16 23:10:06 CEST 2007 [mika] ################################################################################ -set -u set -e -rm -f $target/etc/apt/sources.list - -$ROOTCMD ln -s /etc/apt/sources.list.grml /etc/apt/sources.list - -if [ -r /etc/grml/fai/files/etc/apt/preferences ] ; then - cp /etc/grml/fai/files/etc/apt/preferences $target/etc/apt/preferences +if ifclass SNAPSHOT ; then + set -u + debianlist="${target}/etc/apt/sources.list.d/debian.list" + perl -pi -e 's#(deb.* )(.*://.*?)( .*)$#$1http://snapshot.debian.org/archive/debian/'$(date +%Y%m%d)'/$3#' ${debianlist} fi ## END OF FILE ################################################################# -# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3 +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2