[Eisfair] profile

Hilmar Böhm hilmar.boehm at web.de
Mi Mär 28 01:29:19 CEST 2018


Hallo,

ich erhalte seit zwei Tagen beim Einloggen auf meinem Eisserver-System 
diese Fehlermeldung:
--------------
...
Last login: Wed Mar 28 00:20:49 2018 from 172.16.0.xx
-bash: /etc/profile: line 102: syntax error: unexpected end of file
--------------

Line 102 ist EOF.
Ein ls dieser Datei ist:
--------------
# ls -l /etc/profile
-rw-r--r-- 1 root root 2424 Mar 25 04:13 /etc/profile
--------------

Die profile aus dem letzten Backup davor ist:
-rw-r--r-- 1 root root 2384 Jan  9 17:07 
/media/usb/sda1/rsnap/daily.3/xxxxxx/etc/profile

Damit funktioniert das Login wieder ohne Fehler.
Ich füge eine diff auf beide Dateien bei.

Ich habe an dieser Datei nie etwas selbst aktiv geändert. Kann sich 
jemand einen Reim auf die Änderungen machen? Wie komme ich an eine 
aktuelle, intakte /etc/profile ?

Vielen Dank und Grüße. / Hilmar.

---------------------
hirodc # diff profile profile-defekt
5c5
< # Last Update:  2013-05-01 hbfl
---
 > # Last Update:  2018-03-25 hbfl
7c7
< # Copyright (c) 2001-2013 the eisfair team, team(at)eisfair(dot)org
---
 > # Copyright (c) 2001-2018 the eisfair team, team(at)eisfair(dot)org
18,21c18,25
< then
< #    TERM='linux'
<     TERM='xterm'
< fi
---
 > case "${TERM}" in
 > xterm*|putty*)
 >     TERM="${TERM}"
 >     ;;
 > *)
 >     TERM='linux'
 >     ;;
 > esac
35c39
< if [ ${LOGNAME} = root ]
---
 > if [ "${LOGNAME}" = "root" ]
59c63
< if [ -f /var/run/environment ]
---
 > if [ -f /run/environment ]
61,62c65,66
<     . /var/run/environment
<     for j in `grep '^[A-Za-z].*=' /var/run/environment | sed 's/=.*//g'`
---
 >     . /run/environment
 >     for j in `grep '^[A-Za-z].*=' /run/environment | sed 's/=.*//g'`
---------------------


Mehr Informationen über die Mailingliste Eisfair