]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: fix bash syntax
authorChris Dunlop <chris@onthe.net.au>
Sun, 14 Oct 2012 05:33:47 +0000 (22:33 -0700)
committerSage Weil <sage@inktank.com>
Sun, 14 Oct 2012 05:34:29 +0000 (22:34 -0700)
Introduced by 32a6394be0725b4742ebe87d7537b98c7025e4f6.

Signed-off-by: Chris Dunlop <chris@onthe.net.au>
src/logrotate.conf

index 4497a51e90f0be2aa4bbfef1ad1bdd12b8d9c35d..aef3572918bf6b881992c2fd40668cab365130b2 100644 (file)
@@ -4,12 +4,11 @@
     compress
     sharedscripts
     postrotate
-        if [ -x `which invoke-rc.d` ]
-        then
+        if [ -x `which invoke-rc.d` ]; then
             invoke-rc.d ceph reload >/dev/null
-        elif [ -x `which service` ]
+        elif [ -x `which service` ]; then
             service ceph reload >/dev/null
-        elif [ -x `which initctl` ]
+        elif [ -x `which initctl` ]; then
             # upstart reload isn't very helpful here:
             #   https://bugs.launchpad.net/upstart/+bug/1012938
             for type in mon osd mds; do