change gmo-cfg.sh
This commit is contained in:
parent
e5fe3b504b
commit
b2bdfa589f
@ -17,9 +17,13 @@ alias mv='mv -i'
|
|||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/environment-variables-sudo/
|
alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/environment-variables-sudo/
|
||||||
|
|
||||||
if [ "$USER" == "gilles" ]; then
|
if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
|
||||||
hostnamectl
|
dist=$(cat /etc/redhat-release)
|
||||||
fi
|
kern=$(uname -r)
|
||||||
|
cat << EOF
|
||||||
|
Distribution: $dist
|
||||||
|
Kernel: $kern
|
||||||
|
EOF
|
||||||
# execute only if user is gilles or root
|
# execute only if user is gilles or root
|
||||||
#if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
|
#if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
|
||||||
# # display proxy status
|
# # display proxy status
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user