You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2013/07/19 01:38:02 UTC

git commit: updated refs/heads/4.2 to ab828a1

Updated Branches:
  refs/heads/4.2 1c8555eed -> ab828a164


don't overwrite logrotate in XenServer


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ab828a16
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ab828a16
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ab828a16

Branch: refs/heads/4.2
Commit: ab828a1649827a74b4d7dd74a55e2083eb210d41
Parents: 1c8555e
Author: Anthony Xu <an...@citrix.com>
Authored: Thu Jul 18 16:37:12 2013 -0700
Committer: Anthony Xu <an...@citrix.com>
Committed: Thu Jul 18 16:37:46 2013 -0700

----------------------------------------------------------------------
 scripts/vm/hypervisor/xenserver/setupxenserver.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ab828a16/scripts/vm/hypervisor/xenserver/setupxenserver.sh
----------------------------------------------------------------------
diff --git a/scripts/vm/hypervisor/xenserver/setupxenserver.sh b/scripts/vm/hypervisor/xenserver/setupxenserver.sh
index 57456b3..e4b6f3e 100755
--- a/scripts/vm/hypervisor/xenserver/setupxenserver.sh
+++ b/scripts/vm/hypervisor/xenserver/setupxenserver.sh
@@ -49,7 +49,7 @@ sed -i 's/0\.0\.0\.0/127\.0\.0\.1/' /opt/xensource/libexec/qemu-dm-wrapper 2>&1
 sed -i /NOZEROCONF/d /etc/sysconfig/network
 echo "NOZEROCONF=yes" >> /etc/sysconfig/network
 
-mv /etc/cron.daily/logrotate /etc/cron.hourly 2>&1
+[ -f /etc/cron.hourly/logrotate ] || mv /etc/cron.daily/logrotate /etc/cron.hourly 2>&1
 
 # more aio thread
 echo 1048576 >/proc/sys/fs/aio-max-nr