mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
Fix fetchmail symlinks.
When postfix is installed, there are invalid fetchmail symlinks in rc.d.
This commit is contained in:
@@ -25,3 +25,7 @@
|
||||
extract_files
|
||||
restore_backup ${NAME}
|
||||
start_service --background ${NAME}
|
||||
|
||||
ln -sf ../init.d/fetchmail /etc/rc.d/rc0.d/K25fetchmail
|
||||
ln -sf ../init.d/fetchmail /etc/rc.d/rc3.d/S35fetchmail
|
||||
ln -sf ../init.d/fetchmail /etc/rc.d/rc6.d/K25fetchmail
|
||||
|
||||
@@ -25,3 +25,5 @@
|
||||
stop_service ${NAME}
|
||||
make_backup ${NAME}
|
||||
remove_files
|
||||
|
||||
rm -f /etc/rc.d/rc*.d/*fetchmail
|
||||
|
||||
@@ -27,6 +27,8 @@ postalias /etc/aliases
|
||||
# Set postfix's hostname
|
||||
postconf -e "myhostname=$(hostname -f)"
|
||||
/etc/init.d/postfix start
|
||||
ln -sf ../init.d/fetchmail /etc/rc.d/rc0.d/K25fetchmail
|
||||
ln -sf ../init.d/fetchmail /etc/rc.d/rc3.d/S35fetchmail
|
||||
ln -sf ../init.d/fetchmail /etc/rc.d/rc6.d/K25fetchmail
|
||||
|
||||
# Enable autostart for postfix
|
||||
ln -sf ../init.d/postfix /etc/rc.d/rc0.d/K25postfix
|
||||
ln -sf ../init.d/postfix /etc/rc.d/rc3.d/S35postfix
|
||||
ln -sf ../init.d/postfix /etc/rc.d/rc6.d/K25postfix
|
||||
|
||||
Reference in New Issue
Block a user