blob: 47faaf8f5900e1fcb4b624cc0513d999ea89b0a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/bash
infodir=/usr/share/info
filelist=( mgetty.info.gz )
post_install() {
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir < /dev/null
done
/usr/bin/udevadm trigger
if [ -z "`grep '^fax:' /etc/passwd`" ]; then
useradd -u 51 -d /var/spool/fax -g root -s /usr/bin/nologin fax
fi
chown -R fax:root /var/spool/fax
touch /var/log/sendfax.log
chown fax.root /var/log/sendfax.log
echo --- Please read notes: ---
echo Please update files in /etc/mgetty+sendfax/ before starting daemon
echo enable and start faxrunqd@.service vgetty@.service as needed
echo ---------------------------
}
post_remove() {
userdel fax &> /dev/null
/sbin/udevadm trigger
}
post_upgrade() {
post_install $1
}
|