Fixed fast settings "norootwarn" to actually apply
This commit is contained in:
parent
40de0a7f1a
commit
060c93c1d6
1 changed files with 2 additions and 2 deletions
|
@ -282,12 +282,12 @@ function checkRootUser() {
|
||||||
function checkFastSettings() {
|
function checkFastSettings() {
|
||||||
if [ -f "$HOME/.sostools/git/norootwarn" ] || [ -d "$HOME/.sostools/git/norootwarn" ]; then
|
if [ -f "$HOME/.sostools/git/norootwarn" ] || [ -d "$HOME/.sostools/git/norootwarn" ]; then
|
||||||
rm -rf "$HOME/.sostools/git/norootwarn"
|
rm -rf "$HOME/.sostools/git/norootwarn"
|
||||||
echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARN=true" &> "$HOME/.sostools/git/sos-git.conf.d/norootwarning.conf"
|
echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARNING=true" &> "$HOME/.sostools/git/sos-git.conf.d/norootwarning.conf"
|
||||||
fi
|
fi
|
||||||
if [ "$(whoami)" == "root" ]; then
|
if [ "$(whoami)" == "root" ]; then
|
||||||
if [ -f "/etc/sostools/git/norootwarn" ] || [ -d "/etc/sostools/git/norootwarn" ]; then
|
if [ -f "/etc/sostools/git/norootwarn" ] || [ -d "/etc/sostools/git/norootwarn" ]; then
|
||||||
rm -rf "/etc/sostools/git/norootwarn"
|
rm -rf "/etc/sostools/git/norootwarn"
|
||||||
echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARN=true" &> "/etc/sostools/git/sos-git.conf.d/norootwarning.conf"
|
echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARNING=true" &> "/etc/sostools/git/sos-git.conf.d/norootwarning.conf"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue