Skip to content

Commit e2b8ead

Browse files
committed
Close fd 3 and 4 on centos6 (otherwise bats hangs)
1 parent d5fdcda commit e2b8ead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/restart-ftpd

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ "$GETSSL_OS" = "alpine" ]; then
1111
elif [[ "$GETSSL_OS" == "centos"[78] || "$GETSSL_OS" == "rockylinux"* ]]; then
1212
pgrep vsftpd | head -1 | xargs kill -HUP
1313
elif [[ "$GETSSL_OS" == "centos6" ]]; then
14-
service vsftpd "$arg"
14+
service vsftpd "$arg" 3>&- 4>&-
1515
else
1616
service vsftpd restart >/dev/null 3>&- 4>&-
1717
fi

test/restart-nginx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ elif [[ "$GETSSL_OS" == "centos"[78] || "$GETSSL_OS" == "rockylinux"* ]]; then
77
pgrep nginx | head -1 | xargs kill -HUP
88
sleep 5
99
elif [[ "$GETSSL_OS" == "centos6" ]]; then
10-
service nginx restart
10+
service nginx restart 3>&- 4>&-
1111
# service nginx restart
1212
else
1313
service nginx restart >/dev/null 3>&- 4>&-

0 commit comments

Comments
 (0)