public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/files/
@ 2022-02-17 21:11 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2022-02-17 21:11 UTC (permalink / raw
  To: gentoo-commits

commit:     a9179edd55fff802f5959740bc393f1fce28a20e
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Feb 10 20:14:50 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Feb 17 21:11:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a9179edd

net-nntp/inn: fix bashisms in innd.initd

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-nntp/inn/files/innd.initd | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/net-nntp/inn/files/innd.initd b/net-nntp/inn/files/innd.initd
index e0643146e..cd3f12390 100644
--- a/net-nntp/inn/files/innd.initd
+++ b/net-nntp/inn/files/innd.initd
@@ -29,7 +29,7 @@ daily() {
 expirerm() {
 	local rmfile=/var/log/news/expire.rm
 	for f in ${rmfile} ${rmfile}.*; do
-		if [[ -s ${f} ]]; then
+		if [ -s "${f}" ]; then
 			/opt/inn/bin/expirerm "${f}"
 		fi
 	done
@@ -38,20 +38,20 @@ expirerm() {
 start_pre() {
 	local active=/var/db/news/active
 	local old_newsdaily=$(find /var/db/news/.news.daily -mtime +1 -print 2>/dev/null)
-	if [[ ! -f /var/db/news/.news.daily ]] || [[ -n ${old_newsdaily} ]]; then
+	if [ ! -f /var/db/news/.news.daily ] || [ -n "${old_newsdaily}" ]; then
 		daily
 	fi
 
-	if [[ -f ${pidfile} ]] || [[ -f /run/news/.rebuildoverview ]] || [[ ! -s ${active} ]] ; then
+	if [ -f ${pidfile} ] || [ -f /run/news/.rebuildoverview ] || [ ! -s ${active} ]; then
 		# active needs to be renumbered
-		command_args+=" -r"
+		command_args="${command_args} -r"
 	fi
 
 	# active file recovery
-	if [[ ! -s ${active} ]] ; then
-		if [[ -s ${active}.tmp ]]; then
+	if [ ! -s ${active} ]; then
+		if [ -s ${active}.tmp ]; then
 			mv ${active}.tmp ${active} || return 1
-		elif [[ -s ${active}.old ]]; then
+		elif [ -s ${active}.old ]; then
 			cp ${active}.old ${active} || return 1
 		else
 			eerror "${RC_SVCNAME} failed to start: ${active} does not exist"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/files/
@ 2022-03-18  4:04 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2022-03-18  4:04 UTC (permalink / raw
  To: gentoo-commits

commit:     54e540d34465bd28bbceb51ba65b25f2a7b60788
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Mar 15 10:01:12 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Fri Mar 18 03:31:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54e540d3

net-nntp/inn: fix bashism in openrc service

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-nntp/inn/files/innd.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-nntp/inn/files/innd.initd b/net-nntp/inn/files/innd.initd
index cd3f12390..ae08a5a58 100644
--- a/net-nntp/inn/files/innd.initd
+++ b/net-nntp/inn/files/innd.initd
@@ -62,7 +62,7 @@ start_pre() {
 	# remove temporary batchfiles and lock files
 	rm -f /var/spool/news/outgoing/bch*
 	rm -f /run/news/LOCK*
-	rm -f /run/news/{control,nntpin,.rebuildoverview}
+	rm -f /run/news/control /run/news/nntpin /run/news/.rebuildoverview
 
 	expirerm
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-18  4:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 21:11 [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/files/ Anna Vyalkova
  -- strict thread matches above, loose matches on Subject: below --
2022-03-18  4:04 Anna Vyalkova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox