From: Chris Dunlop Date: Sun, 14 Oct 2012 05:33:47 +0000 (-0700) Subject: logrotate: fix bash syntax X-Git-Tag: v0.54~48 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4db12511f7d6445cea00677eecc267a3c2849ae9;p=ceph.git logrotate: fix bash syntax Introduced by 32a6394be0725b4742ebe87d7537b98c7025e4f6. Signed-off-by: Chris Dunlop --- diff --git a/src/logrotate.conf b/src/logrotate.conf index 4497a51e90f..aef3572918b 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -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