saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2023-08-10 11:58:05 +03:00
parent 2d84c3580c
commit b9d544b9c6
199 changed files with 5119 additions and 120 deletions

View File

@@ -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