]> piware.de Git - bin.git/commitdiff
preinst-backup: check if /var/backup/martin exists
authormartin@piware.de <>
Thu, 13 Dec 2007 22:41:07 +0000 (23:41 +0100)
committermartin@piware.de <>
Thu, 13 Dec 2007 22:41:07 +0000 (23:41 +0100)
preinst-backup

index 4224afaeebbe455e788eea28385954e72165f621..11cbf56dbf74467ff40d6019418b1f2a83e83d97 100755 (executable)
@@ -13,7 +13,7 @@ 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
+[ ! -d /var/backups/martin/ ] || cp -a /var/backups/martin/ /home/martin/backup
 
 apt-get autoclean
 mkdir -p /home/aptcache