cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthon...@apache.org
Subject git commit: updated refs/heads/4.2 to ab828a1
Date Thu, 18 Jul 2013 23:38:02 GMT
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 <anthony.xu@citrix.com>
Authored: Thu Jul 18 16:37:12 2013 -0700
Committer: Anthony Xu <anthony.xu@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


Mime
View raw message