saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2023-01-21 21:29:16 +02:00
parent 561a4bb235
commit a6522d599d

12
profile
View File

@@ -1,4 +1,4 @@
# /etc/profile #_/etc/profile
# System wide environment and startup programs, for login setup # System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc # Functions and aliases go in /etc/bashrc
@@ -21,14 +21,13 @@ pathmunge () {
esac esac
} }
if [ -x /usr/bin/id ]; then if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then if [ -z "$EUID" ]; then
# ksh workaround # ksh workaround
EUID=`/usr/bin/id -u` EUID=$(/usr/bin/id -u)
UID=`/usr/bin/id -ru` UID=$(/usr/bin/id -ru)
fi fi
USER="`/usr/bin/id -un`" USER="$(/usr/bin/id -un)"
LOGNAME=$USER LOGNAME=$USER
MAIL="/var/spool/mail/$USER" MAIL="/var/spool/mail/$USER"
fi fi
@@ -42,7 +41,7 @@ else
pathmunge /usr/sbin after pathmunge /usr/sbin after
fi fi
HOSTNAME=`/usr/bin/hostname 2>/dev/null` HOSTNAME=$(/usr/bin/hostname 2>/dev/null)
HISTSIZE=1000 HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth export HISTCONTROL=ignoreboth
@@ -86,3 +85,4 @@ fi
# auto logout after 30 minutes of innactivity # auto logout after 30 minutes of innactivity
#TMOUT=1800 #TMOUT=1800