]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
avoid warnings in postinst script
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 31 Jan 2012 06:11:34 +0000 (07:11 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 31 Jan 2012 06:11:34 +0000 (07:11 +0100)
debian/postinst

index 65bc9e781aea6a8f57833c3398402deea360da96..a2a508b32aeb7d9342e6ca00adae34e72e6becca 100755 (executable)
@@ -7,8 +7,8 @@ case "$1" in
   configure)
 
     # remove stale /etc/qemu (files are in /etc/kvm)
-    rm /etc/qemu/target-x86_64.conf || true
-    rmdir /etc/qemu || true
+    rm -f /etc/qemu/target-x86_64.conf
+    if test -d /etc/qemu; then rmdir /etc/qemu; fi
 
     # There are three sub-cases:
     if test "${2+set}" != set; then