Changeset 1256


Ignore:
Timestamp:
01/24/12 14:11:19 (4 months ago)
Author:
tschmitt
Message:
  • Erstellen des bittorrent-Benutzers nach preinst verschoben.
Location:
main/linuxmuster-linbo/branches/testing/debian
Files:
3 edited

Legend:

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

    r1255 r1256  
    33  * rsync: updated to 3.0.9, building it unpatched. 
    44  * ntfs-3g: updated to 2012.1.15. 
    5  
    6  -- Thomas Schmitt <schmitt@lmz-bw.de>  Tue, 24 Jan 2011 12:53:07 +0100 
     5  * moved bittorrent user creation to preinst. 
     6 
     7 -- Thomas Schmitt <schmitt@lmz-bw.de>  Tue, 24 Jan 2011 14:03:31 +0100 
    78 
    89linuxmuster-linbo (2.0.3-1) unstable; urgency=low 
  • main/linuxmuster-linbo/branches/testing/debian/postinst

    r1225 r1256  
    143143 fi 
    144144 
    145  # add bittorrent user if not present 
    146  if ! id bittorrent &> /dev/null; then 
    147   adduser --gecos "BitTorrent User" --home /var/lib/bittorrent --ingroup nogroup --system bittorrent 
    148   dpkg-statoverride --add bittorrent nogroup 755 /var/lib/bittorrent 
    149   dpkg-statoverride --add bittorrent nogroup 755 /var/log/bittorrent 
    150  fi 
    151  chown bittorrent:nogroup /var/lib/bittorrent -R 
    152  chown bittorrent:nogroup /var/log/bittorrent -R 
    153  
    154145 # provide a bittorrent default file if necessary 
    155146 if [ ! -s /etc/default/bittorrent -a -s /usr/share/doc/bittorrent/examples/bittorrent.default ]; then 
  • main/linuxmuster-linbo/branches/testing/debian/preinst

    r1164 r1256  
    1313 [ -L "$PXELINUXCFG" ] || cp "$PXELINUXCFG" "$PXELINUXCFG.dpkg-bak" 
    1414 
     15 # add bittorrent user if not present 
     16 if ! id bittorrent &> /dev/null; then 
     17  adduser --gecos "BitTorrent User" --home /var/lib/bittorrent --ingroup nogroup --system bittorrent 
     18  dpkg-statoverride --add bittorrent nogroup 755 /var/lib/bittorrent || true 
     19  dpkg-statoverride --add bittorrent nogroup 755 /var/log/bittorrent || true 
     20  chown bittorrent:nogroup /var/lib/bittorrent -R 
     21  chown bittorrent:nogroup /var/log/bittorrent -R 
     22 fi 
     23 
    1524fi 
    1625 
Note: See TracChangeset for help on using the changeset viewer.