Update Linux/SSH/README.md
This commit is contained in:
@@ -268,7 +268,7 @@ dircolors -p > ~/.dircolors
|
||||
|
||||
# Funktion, um die .bashrc Datei zu aktualisieren
|
||||
update_bashrc() {
|
||||
local user_home=$1
|
||||
local user_home=$1https://gitea.glaeser-it.de/WirFixenAlles/Boilerplates/_edit/main/Linux/SSH/README.md
|
||||
local bashrc_file="$user_home/.bashrc"
|
||||
|
||||
# Sicherstellen, dass die Datei existiert
|
||||
@@ -282,9 +282,11 @@ update_bashrc() {
|
||||
echo "$bashrc_file ist bereits aktuell."
|
||||
fi
|
||||
|
||||
# .dircolors in das Benutzerverzeichnis kopieren
|
||||
# .dircolors in das Benutzerverzeichnis kopieren (außer für root)
|
||||
if [ "$user_home" != "/root" ]; then
|
||||
cp ~/.dircolors "$user_home/.dircolors"
|
||||
chown $(basename $user_home):$(basename $user_home) "$user_home/.dircolors"
|
||||
fi
|
||||
}
|
||||
|
||||
# Aktualisiere die .bashrc Datei für root
|
||||
|
||||
Reference in New Issue
Block a user