From d44965aec3f0d6a5e80d750d6bf5f791e1e92f05 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 12 Mar 2009 19:44:54 +0100 Subject: [PATCH] Experiment with syntax --- input/howto/upgrade-to-lenny.mdwn | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/input/howto/upgrade-to-lenny.mdwn b/input/howto/upgrade-to-lenny.mdwn index ec77dfb..800f979 100644 --- a/input/howto/upgrade-to-lenny.mdwn +++ b/input/howto/upgrade-to-lenny.mdwn @@ -7,7 +7,7 @@ make apt sane: echo 'APT::Install-Recommends 0;' > /etc/apt/apt.conf.d/local-recommends -* add volatile to sources list and upgrade (at least the archive keyring) +add volatile to sources list and upgrade (at least the archive keyring) grep volatile /etc/apt/sources.list || cat >> /etc/apt/sources.list << EOF deb http://volatile.debian.net/debian-volatile etch/volatile main @@ -15,17 +15,17 @@ make apt sane: apt-get update && apt-get dist-upgrade -* turn off samhain +turn off samhain /etc/init.d/samhain stop -* maybe turn off exim +maybe turn off exim /etc/init.d/exim4 stop -* install deborphan, clean up +install deborphan, clean up apt-get install deborphan dialog orphaner @@ -34,26 +34,26 @@ make apt sane: orphaner -a -n -* purge removed packages +purge removed packages dpkg --get-selections | awk '$2!="install" {print $1}' echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'` -* remove cruft and prepare sources.list update +remove cruft and prepare sources.list update rm -f /etc/apt/sources.liste mkdir -p /etc/apt/sources.list.d -* change sources list entries to lenny: +change sources list entries to lenny: mirror=`cat /etc/apt/sources.list | awk '/debian/ {print $2; exit}'` echo "Mirror is $mirror"; echo "Fix stuff if this seems wrong"; echo "XXXXXXXXXXXXXXXXXXXXXXX" echo "## VERIFY THE MIRROR IS CORRECT ##"; read -* write new sources.list.d/ entries: +write new sources.list.d/ entries: (! [ -e /etc/apt/sources.list ] || mv /etc/apt/sources.list /etc/apt/sources.list-oldetch) && cd /etc/apt/sources.list.d && @@ -81,7 +81,7 @@ make apt sane: (! grep restricted /etc/apt/sources.list-oldetch || echo 'deb http://db.debian.org/debian-admin lenny-restricted non-free' >> debian.org.list ) -* add bpo key +add bpo key apt-key add - << EOF -----BEGIN PGP PUBLIC KEY BLOCK----- @@ -125,17 +125,17 @@ make apt sane: EOF -* update apt list +update apt list apt-get update -* upgrade +upgrade apt-get install locales-all -* rest follows +rest follows apt-get dist-upgrade @@ -168,15 +168,15 @@ make apt sane: * change ServerTokens from "Full" to "ProductOnly" in /etc/apache2/conf.d/security -* update nagios on samosa (add host to lenny hostgroup) +update nagios on samosa (add host to lenny hostgroup) -* maybe install [[puppet|puppet-install]] +maybe install [[puppet|puppet-install]] -* check for obsolete packages +check for obsolete packages /usr/lib/nagios/plugins/dsa-check-packages -* clean up old libs +clean up old libs orphaner orphaner -n @@ -184,7 +184,7 @@ make apt sane: orphaner -a -n -* purge removed packages +purge removed packages dpkg --get-selections | awk '$2!="install" {print $1}' echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'` -- 2.20.1