saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2023-10-23 15:56:04 +03:00
parent 04237a62d6
commit 7817b40ae2
84 changed files with 6999 additions and 3629 deletions

View File

@@ -19,12 +19,9 @@ 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" ]]
then
pagerduty
log_ssh_login
else
log_ssh_login
exit 0
fi