Skip to content

Commit

Permalink
TM-818 Fixing scirpts syntax again...
Browse files Browse the repository at this point in the history
  • Loading branch information
vc13837 committed Dec 19, 2024
1 parent 2eb1a07 commit d636170
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion terraform/environments/edw/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ shutdown abort;
startup;
exit;
EOC6"
EOF
}

Expand Down
3 changes: 1 addition & 2 deletions terraform/environments/edw/scripts/disk_space_alert.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash
if [ $# -ne 2 ]; then
echo "1st parameter is ENV and 2nd parameter is % usage "
fi

else

ALERT=$2 # alert level
MAILLOG=/tmp/mail.log
Expand Down
10 changes: 5 additions & 5 deletions terraform/environments/edw/scripts/freespace_alert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

if [ $# -ne 1 ]; then
echo "1st parameter is ENV"
fi

else
# fixed variables
LOCATE=$HOME/scripts
ORACLE_SID=EDW;export ORACLE_SID
Expand All @@ -21,8 +20,9 @@ conn / as sysdba
exit
eosql
if grep "no rows" freespace.log
then
then
echo "all good"
else
mailx -s "EDW $1 freespace at `date`" SLACK_ALERT_URL -- < freespace.log
else
mailx -s "EDW $1 freespace at `date`" SLACK_ALERT_URL -- < logs/freespace_alert.log
fi
fi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

if [ $# -ne 1 ]; then
echo "1st parameter is ENV"
fi

else
# fixed variables
chown -R oracle:dba /home/oracle/scripts

Expand All @@ -21,3 +20,4 @@ exit
eosql

mailx -s "MI $1 (EDW005) datafix 3079 \`date\`" SLACK_ALERT_URL < rundatafix.log
fi

0 comments on commit d636170

Please sign in to comment.