Fix fetchmail symlinks.

When postfix is installed, there are invalid fetchmail symlinks in rc.d.
This commit is contained in:
Michael Tremer
2013-09-17 13:23:57 +02:00
parent d9949d4dd1
commit d63e50f936
4 changed files with 16 additions and 3 deletions

View File

@@ -53,6 +53,11 @@ extract_files
#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...

View File

@@ -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

View File

@@ -25,3 +25,5 @@
stop_service ${NAME}
make_backup ${NAME}
remove_files
rm -f /etc/rc.d/rc*.d/*fetchmail

View File

@@ -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