Ignore:
Timestamp:
02/05/10 19:55:47 (2 years ago)
Author:
tschmitt
Message:
  • Paket:
    • LSB-Header zu linbo-multicast Initskript hinzugefügt.
    • postinst: o Bereitstellen der Bittorrent-Initskripte, werden vom Lenny-Bittorrent-Paket nicht

mehr automatisch installiert.

o Unterdrücken des Passwortprompts bei SSH-Schlüsselgenerierung.

  • Linbofs
    • Rsync: neue Version 3.0.7.
    • linbo_cmd.sh: o mk_cloop(): Rsync-Optionen bzgl. Dateisystemtyp differenziert (ntfs, vfat, other).
    • linbo_wrapper: Shutdown-Befehl von poweroff nach halt geändert.
    • ntfs-3g: Neue Version 2010.1.16 (stable).
  • Kernel: Neue Version 2.6.32.7.
  • Serverskripte
    • Syslinux: Auf Lenny neu kompiliert.
    • make-linbo-media.sh: o Neue Option -n: erlaubt Passwort basiertes einloggen, benötigt -p, optional. o Neue Option -p <passwort>: setzt das lokale linbo Adminpasswort, wird auch für

Root-SSH-Login benutzt, wenn mit -n das Passwort basierte Einloggen erlaubt wurde, optional.

o Neue Option -r: entfernt den öffentlichen SSH-Schlüssen des Serverbenutzers root.
o Ermittlung der LINBO-Parameter aus der gruppenspezifischen PXE-Konfigurationsdatei verbessert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/linuxmuster-linbo/branches/testing/debian/postinst

    r585 r591  
    102102        fi 
    103103 
    104   if [ -e /etc/default/bittorrent ]; then 
    105    # add bittorrent user if not present 
    106    if ! id bittorrent &> /dev/null; then 
    107     useradd -c "BitTorrent User" -d /var/lib/bittorrent -g nogroup -r bittorrent 
    108     dpkg-statoverride --add bittorrent nogroup 755 /var/lib/bittorrent 
    109     dpkg-statoverride --add bittorrent nogroup 755 /var/log/bittorrent 
    110    fi 
    111    chown bittorrent:nogroup /var/lib/bittorrent -R 
    112    chown bittorrent:nogroup /var/log/bittorrent -R 
    113    # setting needed options in /etc/default/bittorrent 
     104  # add bittorrent user if not present 
     105  if ! id bittorrent &> /dev/null; then 
     106   useradd -c "BitTorrent User" -d /var/lib/bittorrent -g nogroup -r bittorrent 
     107   dpkg-statoverride --add bittorrent nogroup 755 /var/lib/bittorrent 
     108   dpkg-statoverride --add bittorrent nogroup 755 /var/log/bittorrent 
     109  fi 
     110  chown bittorrent:nogroup /var/lib/bittorrent -R 
     111  chown bittorrent:nogroup /var/log/bittorrent -R 
     112 
     113  # provide a bittorrent default file if necessary 
     114  if [ ! -s /etc/default/bittorrent -a -s /usr/share/doc/bittorrent/examples/bittorrent.default ]; then 
     115   cp /usr/share/doc/bittorrent/examples/bittorrent.default /etc/default/bittorrent 
     116  fi 
     117 
     118  # provide a bittorrent init script if necessary 
     119  if [ ! -s /etc/init.d/bittorrent -a -s /usr/share/doc/bittorrent/examples/bittorrent.init ]; then 
     120   cp /usr/share/doc/bittorrent/examples/bittorrent.init /etc/init.d/bittorrent 
     121   chmod 755 /etc/init.d/bittorrent 
     122   update-rc.d bittorrent defaults 
     123  fi 
     124 
     125  # setting needed options in /etc/default/bittorrent 
     126  if [ -s /etc/default/bittorrent ]; then 
    114127   if ! grep -q ^REANNOUNCE_INTERVAL /etc/default/bittorrent; then 
    115128    echo "Adding REANNOUNCE_INTERVAL=15 to /etc/default/bittorrent." 
     
    149162    sed -e 's|/var/log/linuxmuster/linbo/|/var/log/bittorrent/|' /etc/logrotate.d/linuxmuster-linbo > /etc/logrotate.d/bittorrent 
    150163   fi 
    151   fi 
     164  fi # /etc/default/bittorrent 
    152165 
    153166  # change owner of logdir to nobody 
     
    157170  # create dropbear ssh keys 
    158171  if [ ! -s "$SYSCONFDIR/linbo/ssh_host_rsa_key" ]; then 
    159    echo -e "$SYSCONFDIR/linbo/ssh_host_rsa_key\n\n\n" | ssh-keygen -t rsa 
     172   echo -e "$SYSCONFDIR/linbo/ssh_host_rsa_key\n\n\n\n\n" | ssh-keygen -t rsa 
    160173   /usr/lib/dropbear/dropbearconvert openssh dropbear $SYSCONFDIR/linbo/ssh_host_rsa_key $SYSCONFDIR/linbo/dropbear_rsa_host_key 
    161174  fi 
    162175  if [ ! -s "$SYSCONFDIR/linbo/ssh_host_dsa_key" ]; then 
    163    echo -e "$SYSCONFDIR/linbo/ssh_host_dsa_key\n\n\n" | ssh-keygen -t dsa 
     176   echo -e "$SYSCONFDIR/linbo/ssh_host_dsa_key\n\n\n\n\n" | ssh-keygen -t dsa 
    164177   /usr/lib/dropbear/dropbearconvert openssh dropbear $SYSCONFDIR/linbo/ssh_host_dsa_key $SYSCONFDIR/linbo/dropbear_dss_host_key 
    165178  fi 
Note: See TracChangeset for help on using the changeset viewer.