cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [cloudstack] branch debian9-systemvmtemplate updated: remove all logs
Date Thu, 23 Nov 2017 14:21:28 GMT
This is an automated email from the ASF dual-hosted git repository.

bhaisaab pushed a commit to branch debian9-systemvmtemplate
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/debian9-systemvmtemplate by this push:
     new 54e270b  remove all logs
54e270b is described below

commit 54e270b5e852151777bf2f91e664d8a1b1e93801
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
AuthorDate: Thu Nov 23 19:51:04 2017 +0530

    remove all logs
    
    Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
---
 tools/appliance/definitions/systemvmtemplate/cleanup.sh         | 3 +--
 tools/appliance/definitions/systemvmtemplate/configure_login.sh | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/appliance/definitions/systemvmtemplate/cleanup.sh b/tools/appliance/definitions/systemvmtemplate/cleanup.sh
index 758a78a..8f681ed 100644
--- a/tools/appliance/definitions/systemvmtemplate/cleanup.sh
+++ b/tools/appliance/definitions/systemvmtemplate/cleanup.sh
@@ -40,8 +40,7 @@ function cleanup_dev() {
 }
 
 function cleanup_misc() {
-  rm -f /var/log/*
-  rm -fr /var/log/installer
+  rm -fr /var/log/*
   rm -f /root/.rnd
   rm -f /home/cloud/cloud_scripts*
   rm -f /var/www/html/index.html
diff --git a/tools/appliance/definitions/systemvmtemplate/configure_login.sh b/tools/appliance/definitions/systemvmtemplate/configure_login.sh
index 1735b81..d5f80b1 100644
--- a/tools/appliance/definitions/systemvmtemplate/configure_login.sh
+++ b/tools/appliance/definitions/systemvmtemplate/configure_login.sh
@@ -73,6 +73,7 @@ function configure_login() {
   configure_sudoers
   configure_user
   rm -fv /home/cloud/configure_login.sh
+  sync
   halt -p
 }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <commits@cloudstack.apache.org>'].

Mime
View raw message