X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=preinst-backup;h=eef4f5f73998020a0610087b0d05361c1a9603d7;hp=084f6596dfd1f422f76fe603ed81f2ccfd445eff;hb=81521260ca798078f5b4c8540d3debb76fcd7ad2;hpb=d5bbaccdbfcb0eefb31c8f03a9b21cbf1f3e3e12 diff --git a/preinst-backup b/preinst-backup index 084f659..eef4f5f 100755 --- a/preinst-backup +++ b/preinst-backup @@ -6,17 +6,4 @@ if [ -n "`cd /etc; bzr modified`" ]; then fi # push /etc/ -(cd /etc; HOME=/root bzr push) - -# copy backup to ~ -if [ -d /home/martin/backup ]; then - echo "/home/martin/backup exists already, aborting" >&2 - exit 1 -fi -cp -a /var/backups/martin/ /home/martin/backup - -apt-get autoclean -mkdir -p /home/aptcache -rm -rf /home/aptcache/* -cp /var/cache/apt/archives/*.deb /home/aptcache/ - +(cd /etc; HOME=/home/martin bzr push)