From d6ff62ae23b4a1c6c8e0b4bb4fde3fb2b1870b8e Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Aug 08 2012 20:12:20 +0000 Subject: Clean pgsql dir only on c6 --- diff --git a/utils/cleanup_vm.sh b/utils/cleanup_vm.sh index 04eb748..be0e79a 100644 --- a/utils/cleanup_vm.sh +++ b/utils/cleanup_vm.sh @@ -49,8 +49,8 @@ for x in `find . -maxdepth 2 -type f -name \*.rpmnew`; do done # Package specific cleanup -# Clean pgsql data dir -/bin/rm -rf /var/lib/pgsql/ +# Clean pgsql data dir on c6 +(t_GetPkgRel postgresql | grep -q el6) && /bin/rm -rf /var/lib/pgsql/ # Clean tmp rm -rf /tmp/*