From b9fbb5e2991c88ba36256d8529ed3fc7afe891e7 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Nov 29 2011 17:09:51 +0000 Subject: Fix cleanup_vm (only c6 pgsql that need clean-up) --- diff --git a/utils/cleanup_vm.sh b/utils/cleanup_vm.sh index 4be2e03..12c36f2 100644 --- a/utils/cleanup_vm.sh +++ b/utils/cleanup_vm.sh @@ -20,12 +20,6 @@ else yum -y shell /tmp/yum-cleanup fi -# Package specific cleanup -# Clean pgsql data dir -/bin/rm -rf /var/lib/pgsql/ - -## EOF - yum -y reinstall \* cd /etc for x in `find . -maxdepth 2 -type f -name \*.rpmnew`; do @@ -34,3 +28,8 @@ for x in `find . -maxdepth 2 -type f -name \*.rpmnew`; do mv $x $a done +# Package specific cleanup +# Clean pgsql data dir +(rpm -q postgresql | grep -q el6) && /bin/rm -rf /var/lib/pgsql/ + +## EOF