When postfix is installed, there are invalid fetchmail symlinks in rc.d.
#Update Language cache
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+# Remove invalid fetchmail symlinks when postfix is installed.
+if [ ! -e "/etc/rc.d/init.d/fetchmail" ]; then
+ rm -f /etc/rc.d/rc*.d/*fetchmail
+fi
+
sync
# This update need a reboot...
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
stop_service ${NAME}
make_backup ${NAME}
remove_files
+
+rm -f /etc/rc.d/rc*.d/*fetchmail
# 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