Browse Source

Close fd 3 and 4 on centos6 (otherwise bats hangs)

release2.46
Tim Kimber 4 years ago
parent
commit
e2b8ead532
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      test/restart-ftpd
  2. +1
    -1
      test/restart-nginx

+ 1
- 1
test/restart-ftpd View File

@ -11,7 +11,7 @@ if [ "$GETSSL_OS" = "alpine" ]; then
elif [[ "$GETSSL_OS" == "centos"[78] || "$GETSSL_OS" == "rockylinux"* ]]; then
pgrep vsftpd | head -1 | xargs kill -HUP
elif [[ "$GETSSL_OS" == "centos6" ]]; then
service vsftpd "$arg"
service vsftpd "$arg" 3>&- 4>&-
else
service vsftpd restart >/dev/null 3>&- 4>&-
fi

+ 1
- 1
test/restart-nginx View File

@ -7,7 +7,7 @@ elif [[ "$GETSSL_OS" == "centos"[78] || "$GETSSL_OS" == "rockylinux"* ]]; then
pgrep nginx | head -1 | xargs kill -HUP
sleep 5
elif [[ "$GETSSL_OS" == "centos6" ]]; then
service nginx restart
service nginx restart 3>&- 4>&-
# service nginx restart
else
service nginx restart >/dev/null 3>&- 4>&-


Loading…
Cancel
Save