Changeset 990d5fd for debian/postinst


Ignore:
Timestamp:
2008-03-24T19:57:40Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5e81e60
Parents:
bfe7caa (diff), 628e601 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from Debian package tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    rbfe7caa r990d5fd  
    7474fi
    7575
    76 adduser --system --home /var/lib/bitlbee/ --disabled-login --disabled-password bitlbee
     76adduser --system --group --disabled-login --disabled-password --home /var/lib/bitlbee/ bitlbee
    7777chmod 700 /var/lib/bitlbee/
    7878
    7979## Can't do this in packaging phase: Don't know the UID yet. Access to
    80 ## the file should be limited, now that it stores passwords.
    81 chmod 600 /etc/bitlbee/bitlbee.conf
    82 chown bitlbee /etc/bitlbee/bitlbee.conf
     80## the file should be limited, now that it stores passwords. Added
     81## --group later for a little more security, but have to see if I can
     82## apply this change to existing installations on upgrades. Will think
     83## about that later.
     84if getent group bitlbee > /dev/null; then
     85        chmod 640 /etc/bitlbee/bitlbee.conf
     86        chown root:bitlbee /etc/bitlbee/bitlbee.conf
     87else
     88        chmod 600 /etc/bitlbee/bitlbee.conf
     89        chown bitlbee /etc/bitlbee/bitlbee.conf
     90fi
    8391
    8492if [ -z "$2" ]; then
Note: See TracChangeset for help on using the changeset viewer.