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