Skip to content

Commit 68cf997

Browse files
committed
more logging
1 parent daa86dc commit 68cf997

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.115-envoy-rc8"
1+
postgres-version = "15.1.0.115-envoy-rc9"

scripts/90-cleanup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ chmod 600 /etc/ssh/revoked_keys
6464
/usr/sbin/service sysstat start >> ~/varlog3rc8.log
6565
/usr/bin/sar -A >> ~/varlog3rc8.log
6666
ls -alh /var/log/ >> ~/varlog3rc8.log
67+
/usr/bin/sar -A >> ~/varlog3rc8.log
6768
# Securely erase the unused portion of the filesystem
6869
GREEN='\033[0;32m'
6970
NC='\033[0m'

scripts/91-log_cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#Erasing all logs
33
#
44
echo "Clearing all log files"
5-
rm -rf /var/log/*
5+
rm -rfv /var/log/*
66

77
# creating system stats directory
88
/usr/sbin/service sysstat stop >> ~/varlog2rc8.log

scripts/99-img_check.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
VERSION="v. 1.6"
88
RUNDATE=$( date )
99

10+
echo "this script ran" >> /opt/script.log
11+
ls -alh /var/log/ >> /opt/varlog2.log
12+
1013
# Script should be run with SUDO
1114
if [ "$EUID" -ne 0 ]
1215
then echo "[Error] - This script must be run with sudo or as the root user."
@@ -652,7 +655,7 @@ checkRoot
652655
checkAgent
653656

654657
checkMongoDB
655-
ls -alh /var/log/ >> ~/varlog2.log
658+
656659

657660
# Summary
658661
echo -en "\n\n---------------------------------------------------------------------------------------------------\n"

0 commit comments

Comments
 (0)