Skip to content

Commit

Permalink
Allow slashes in DEBIAN_MIRROR and use it on server
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed May 10, 2011
1 parent a858abd commit 84a9ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/netscript.sh
Expand Up @@ -50,6 +50,7 @@ get_fai_config() {
}

software_install() {
sed -i "s;cdn.debian.net;${DEBIAN_MIRROR};" /etc/apt/sources.list.d/debian.list
if [ -z "$FAI_MIRROR" ] ; then
log "Configuration \$FAI_MIRROR unset, skipping sources.list step."
else
Expand Down Expand Up @@ -210,7 +211,7 @@ fai_conf() {

sed -i "s;FAI_DEBOOTSTRAP=.*;FAI_DEBOOTSTRAP=\"lenny http://${DEBIAN_MIRROR}/debian\";" \
/etc/fai/make-fai-nfsroot.conf
sed -i "s/cdn.debian.net/${DEBIAN_MIRROR}/" /etc/fai/apt/sources.list
sed -i "s;cdn.debian.net;${DEBIAN_MIRROR};" /etc/fai/apt/sources.list

# make sure new FAI version is available inside nfsroot as well
if ! grep -q '^# FAI deployment script' /etc/fai/apt/sources.list ; then
Expand Down

0 comments on commit 84a9ea8

Please sign in to comment.