summaryrefslogtreecommitdiff
path: root/extra/hylafax/hylafax.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/hylafax/hylafax.install')
-rw-r--r--extra/hylafax/hylafax.install18
1 files changed, 10 insertions, 8 deletions
diff --git a/extra/hylafax/hylafax.install b/extra/hylafax/hylafax.install
index bd97d42bd..5dacf4045 100644
--- a/extra/hylafax/hylafax.install
+++ b/extra/hylafax/hylafax.install
@@ -1,8 +1,6 @@
print_install() {
printf "\n"
- echo "If installing new:"
- printf "\n"
echo "Add the following to /etc/inittab and run telinit q"
echo " f1:2345:respawn:/usr/lib/fax/faxgetty ttyS0"
echo "faxgetty should now be running"
@@ -24,16 +22,20 @@ print_remove() {
}
post_install() {
- groupadd -g 14 uucp &>/dev/null
- useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
- useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
+ post_upgrade
print_install
}
post_upgrade() {
- post_install
- usermod -d '/' uucp
- usermod -d '/' fax
+ groupadd -g 14 uucp &>/dev/null
+ useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
+ useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
+ chown uucp /var/spool/hylafax/{,archive,bin,client,config,dev,docq,doneq,etc}
+ chown uucp /var/spool/hylafax/{FIFO,info,log,pollq,recvq,sendq,status,tmp}
+ chown uucp /var/spool/hylafax/etc/{hosts.hfaxd,lutRS18.pcf,xferfaxlog}
+ chown -R uucp /var/spool/hylafax/etc/templates
+ usermod -d '/' uucp &>/dev/null
+ usermod -d '/' fax &>/dev/null
}
pre_remove() {