saving uncommitted changes in /etc prior to dnf run
This commit is contained in:
@@ -19,7 +19,8 @@ pagerduty() {
|
||||
/usr/bin/curl -s -X POST -H "content-type: application/json" -d '{"routing_key":"1969ec3d30b74608d0135d6321275bb7","event_action":"trigger","payload":{"summary":"User '"$USER"' has logged in via SSH!!","source":"/etc/ssh/sshrc","severity":"critical","component":"exploratory-stats","group":"prod-datapipe","class":"deploy"}}' "$PAGERDUTY_URL" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
if [[ "$USER" == "laser" || "$USER" == "madalin" || "$USER" == "smiti" ]]
|
||||
#if [[ "$USER" == "laser" || "$USER" == "madalin" || "$USER" == "smiti" ]]
|
||||
if [[ "$USER" == "laser" ]]
|
||||
then
|
||||
pagerduty
|
||||
log_ssh_login
|
||||
|
||||
Reference in New Issue
Block a user