net-mail/courier-imap: fix bug 340175
authorAndrew Savchenko <bircoph@gentoo.org>
Sun, 12 Feb 2017 13:00:14 +0000 (16:00 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Sun, 12 Feb 2017 13:55:02 +0000 (16:55 +0300)
Make init scripts POSIX compliant. Patch by Alec Moskvin <alecm at
gmx.com>, bug 340175.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd-ssl.rc6
net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d-ssl.rc6
net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-pop3d.rc6

index 38f69b1f51bb468d87d9f398a1ba11a176ddefce..d903cd016143b4adcfbd7b7a96aa87e5260d7563 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -8,19 +8,19 @@ depend() {
        use famd
 }
 
-source /etc/courier-imap/imapd-ssl
+. /etc/courier-imap/imapd-ssl
 
 checkconfig() {
-       if [[ ! -e /etc/courier-imap/imapd-ssl ]] ; then
+       if [ ! -e /etc/courier-imap/imapd-ssl ] ; then
                eerror "You need an /etc/courier-imap/imapd-ssl file to run courier-imapd-ssl"
                return 1
        fi
-       source /etc/courier-imap/imapd-ssl || {
+       . /etc/courier-imap/imapd-ssl || {
                eerror "There are syntax errors in /etc/courier-imap/imapd-ssl"
                eerror "Please correct them before trying to start courier-imapd-ssl"
                return 3
        }
-       if [[ ! -e "${TLS_CERTFILE}" ]] ; then
+       if [ ! -e "${TLS_CERTFILE}" ] ; then
                eerror "You need to create a SSL certificate to use IMAP over SSL"
                eerror "Edit /etc/courier-imap/imapd.cnf, then run: mkimapdcert"
                return 2
index 2c336d7b49926096d726747d4b7b58adf910fdfe..9ab0bf22a06f8b99270ed50d606dd03395c8b577 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -8,14 +8,14 @@ depend() {
        use famd
 }
 
-source /etc/courier-imap/imapd
+. /etc/courier-imap/imapd
 
 checkconfig() {
-       if [[ ! -e /etc/courier-imap/imapd ]] ; then
+       if [ ! -e /etc/courier-imap/imapd ] ; then
                eerror "You need an /etc/courier-imap/imapd file to run courier-imapd"
                return 1
        fi
-       source /etc/courier-imap/imapd || {
+       . /etc/courier-imap/imapd || {
                eerror "There are syntax errors in /etc/courier-imap/imapd"
                eerror "Please correct them before trying to start courier-imapd"
                return 2
index ba32da563a62f87f0f2026dbe771f5f23f019d8a..46b5b425d9d8ae91a5897f5b8c870d2839082eca 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -8,19 +8,19 @@ depend() {
        use famd
 }
 
-source /etc/courier-imap/pop3d-ssl
+. /etc/courier-imap/pop3d-ssl
 
 checkconfig() {
-       if [[ ! -e /etc/courier-imap/pop3d-ssl ]] ; then
+       if [ ! -e /etc/courier-imap/pop3d-ssl ] ; then
                eerror "You need an /etc/courier-imap/pop3d-ssl file to run courier-pop3d-ssl"
                return 1
        fi
-       source /etc/courier-imap/pop3d-ssl || {
+       . /etc/courier-imap/pop3d-ssl || {
                eerror "There are syntax errors in /etc/courier-imap/pop3d-ssl"
                eerror "Please correct them before trying to start courier-pop3d-ssl"
                return 3
        }
-       if [[ ! -e "${TLS_CERTFILE}" ]] ; then
+       if [ ! -e "${TLS_CERTFILE}" ] ; then
                eerror "You need to create a SSL certificate to use POP3 over SSL"
                eerror "Edit /etc/courier-imap/pop3d.cnf, then run: mkpop3dcert"
                return 2
index 9a4ecf60499d911d2342877de7364be3aaba6418..dc6033c92356ca0748a5a149b20a5a031551d7e6 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -8,14 +8,14 @@ depend() {
        use famd
 }
 
-source /etc/courier-imap/pop3d
+. /etc/courier-imap/pop3d
 
 checkconfig() {
-       if [[ ! -e /etc/courier-imap/pop3d ]] ; then
+       if [ ! -e /etc/courier-imap/pop3d ] ; then
                eerror "You need an /etc/courier-imap/pop3d file to run courier-pop3d"
                return 1
        fi
-       source /etc/courier-imap/pop3d || {
+       . /etc/courier-imap/pop3d || {
                eerror "There are syntax errors in /etc/courier-imap/pop3d"
                eerror "Please correct them before trying to start courier-pop3d"
                return 2