]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Fix fetchmail symlinks.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Sep 2013 11:23:57 +0000 (13:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Sep 2013 11:23:57 +0000 (13:23 +0200)
When postfix is installed, there are invalid fetchmail symlinks in rc.d.

config/rootfiles/core/73/update.sh
src/paks/fetchmail/install.sh
src/paks/fetchmail/uninstall.sh
src/paks/postfix/install.sh

index 6afca9fc54afb494b2f3b6b9c23c81f3815b6e17..1fb3ac64269ed59b5cdb1173a2edcadfc10f0c87 100644 (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...
index 31c5fecae2e3f1a09e312e3e2bbbcc0e7e03c373..b379c0cdf88042beba78d429b0d3ed502e1b2f28 100644 (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
index a7b8a5370f68e23809d3bd94083f0150545980cb..2d2606f9962ef65a771b58eeed9519989eb0078f 100644 (file)
@@ -25,3 +25,5 @@
 stop_service ${NAME}
 make_backup ${NAME}
 remove_files
+
+rm -f /etc/rc.d/rc*.d/*fetchmail
index b8b18098aa29086fd3199307eadb41c3618ab676..56c23e2c26bdea3576128c2881ab25171122267d 100644 (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