[Debian-ha-commits] [pacemaker] 02/05: Streamlined formatting

Richard Winters devrik-guest at moszumanska.debian.org
Wed Apr 29 08:25:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

devrik-guest pushed a commit to branch master
in repository pacemaker.

commit a26c1f8cc0739cb9426a19d1b8953d0fd2cf26f8
Author: Richard B Winters <rik at mmogp.com>
Date:   Tue Apr 28 22:32:58 2015 -0400

    Streamlined formatting
    
    Change-Id: I758acea780b32d920b348960ae55fdaa28cfe4e1
    Signed-off-by: Richard B Winters <rik at mmogp.com>
---
 debian/pacemaker.postinst | 15 +++++++--------
 debian/pacemaker.prerm    | 25 ++++++++++++-------------
 2 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/debian/pacemaker.postinst b/debian/pacemaker.postinst
index 5236245..4b72edf 100644
--- a/debian/pacemaker.postinst
+++ b/debian/pacemaker.postinst
@@ -23,14 +23,13 @@ set -e
 
 case "$1" in
     configure)
-    
-    # Compile bytecode for all of the .py files
-    python -m compileall /usr/lib/python2.7/dist-packages/cts
+        # Compile bytecode for all of the .py files
+        python -m compileall /usr/lib/python2.7/dist-packages/cts
 
-  	addgroup --system haclient
+  	    addgroup --system haclient
         adduser --system hacluster --ingroup haclient --home /var/lib/heartbeat
 
-	for i in /var/run/heartbeat/crm /var/lib/heartbeat/crm \
+	    for i in /var/run/heartbeat/crm /var/lib/heartbeat/crm \
 			/var/lib/heartbeat/pengine /var/lib/pengine \
 			/var/lib/pacemaker/blackbox /var/lib/pacemaker/cib \
 			/var/lib/pacemaker/cores /var/lib/pacemaker/crm \
@@ -40,8 +39,8 @@ case "$1" in
 		fi
 		chown hacluster $i
 		chgrp haclient $i
-	done
-	chmod 750 /var/lib/pengine
+	    done
+	    chmod 750 /var/lib/pengine
     ;;
 	
     purge)
@@ -49,7 +48,7 @@ case "$1" in
         if [ "x$?" = "x0" ]; then userdel -rf haclient && groupdel hacluster; fi
         
         rm -rf /var/lib/openais
-	rm -rf /var/log/openais
+	    rm -rf /var/log/openais
     ;;
 	
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/pacemaker.prerm b/debian/pacemaker.prerm
index 60367d5..64b1e25 100644
--- a/debian/pacemaker.prerm
+++ b/debian/pacemaker.prerm
@@ -21,19 +21,18 @@ set -e
 . /usr/share/debconf/confmodule
 
 case "$1" in
-  remove|upgrade|deconfigure)
-    # remove compiled bytecode
-    rm -R /usr/lib/python2.7/dist-packages/cst/*.pyc 2>/dev/null >/dev/null || true
-  ;;
-
-  failed-upgrade)
-  ;;
-
-  *)
-    echo "prerm called with unknown argument \`$1'" >&2
-    exit 1
-  ;;
-  
+    remove|upgrade|deconfigure)
+        # remove compiled bytecode
+        rm -R /usr/lib/python2.7/dist-packages/cst/*.pyc 2>/dev/null >/dev/null || true
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;  
 esac
 
 # dh_installdeb will replace this with shell code automatically

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git



More information about the Debian-HA-Commits mailing list