Only "fiddle" with /etc/ngircd in "configure" stage.

This commit is contained in:
Alexander Barton 2006-12-26 14:44:40 +00:00
parent 2d9a3ec484
commit ee568cc444
1 changed files with 12 additions and 5 deletions

View File

@ -1,13 +1,20 @@
#!/bin/sh #!/bin/sh
# #
# Debian post-installation script # Debian post-installation script
# $Id: ngircd.postinst,v 1.1 2003/12/31 17:20:11 alex Exp $ # $Id: ngircd.postinst,v 1.2 2006/12/26 14:44:40 alex Exp $
# #
if [ -f /etc/ngircd/ngircd.conf ]; then set -e
# make sure that configuration file is not world readable
chmod o= /etc/ngircd/ngircd.conf case "$1" in
fi configure)
if [ -f /etc/ngircd/ngircd.conf ]; then
# make sure that the configuration file is not
# world-readable, it contains passwords!
chmod o= /etc/ngircd/ngircd.conf
fi
;;
esac
#DEBHELPER# #DEBHELPER#