]> piware.de Git - bin.git/blobdiff - preinst-backup
debian-backport-cockpit: Fix for stretch, disable jessie
[bin.git] / preinst-backup
index 084f6596dfd1f422f76fe603ed81f2ccfd445eff..eef4f5f73998020a0610087b0d05361c1a9603d7 100755 (executable)
@@ -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)