mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Fix fetchmail symlinks.
When postfix is installed, there are invalid fetchmail symlinks in rc.d.
This commit is contained in:
@@ -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...
|
||||
|
||||
@@ -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