From 89e98b6e45c282455e851e0e804cc771fec5379d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 9 Aug 2007 11:59:48 +0200 Subject: [PATCH] postinst-setup: some fixes --- postinst-setup | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/postinst-setup b/postinst-setup index 25b1747..a64e756 100755 --- a/postinst-setup +++ b/postinst-setup @@ -3,6 +3,7 @@ # move backup to /var if [ -d /home/martin/backup ] && [ ! -d /var/backups/martin ]; then cp -a /home/martin/backup /var/backups/martin + rm -rf /home/martin/backup fi # install already shipped debs @@ -22,11 +23,13 @@ fi # completely cd /etc if [ ! -d /etc/.bzr ]; then - rsync -r martin@piware.de:backup/desktop-etc/.bzr . for i in passwd group shadow fstab; do cp $i $i.originst done - bzr revert --no-backup + bzr get bzr+ssh://martin@piware.de/home/martin/backup/desktop-etc /desktop-etc + cp -av /desktop-etc/* /etc/ + cp -av /desktop-etc/.bzr/ /etc/ + rm -rf /desktop-etc fi # only restore dchroot part into fstab -- 2.39.5