]> piware.de Git - bin.git/blobdiff - preinst-backup
retry-gh-systemd-test: update branch
[bin.git] / preinst-backup
index 68df29bf2b97a1403712fe0f83e63ec338b3c4b5..eef4f5f73998020a0610087b0d05361c1a9603d7 100755 (executable)
@@ -6,17 +6,4 @@ if [ -n "`cd /etc; bzr modified`" ]; then
 fi
 
 # push /etc/
-(cd /etc; HOME=/root bzr push)
-
-CURBACKUP=`ls -t /var/backups/pibackup/full* | head -n 1`
-[ -e "$CURBACKUP" ] || {
-    echo no current full backup in /var/backups/pibackup
-    exit 1
-}
-cp $CURBACKUP /home/
-
-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)