Skip to content

Commit 039d3c3

Browse files
jakegt1Djelibeybi
authored andcommitted
stdout vs stderr
1 parent 1c421ac commit 039d3c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OracleLinuxDevelopers/oraclelinux9/httpd/2.4/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ SERVER_CERT="$CERTIFICATE_DIR/fullchain.pem"
66
SERVER_KEY="$KEY_DIR/privkey.pem"
77

88
if [ ! -f "$SERVER_KEY" ]; then
9-
echo "Generating certificate private key for SSL support"
10-
openssl genpkey -algorithm RSA -out "$SERVER_KEY"
9+
echo "Generating certificate private key for SSL support" 1>&2
10+
openssl genpkey -algorithm RSA -out "$SERVER_KEY" 1>&2
1111
fi
1212

1313
if [ ! -f "$SERVER_CERT" ]; then
14-
echo "Generating self-signed certificates for SSL support"
15-
openssl req -x509 -new -nodes -key "$SERVER_KEY" -sha256 -days 3650 -out "$SERVER_CERT" -subj "/C=US/ST=California/L=San Francisco/O=Test Company/CN=localhost"
14+
echo "Generating self-signed certificate for SSL support" 1>&2
15+
openssl req -x509 -new -nodes -key "$SERVER_KEY" -sha256 -days 3650 -out "$SERVER_CERT" -subj "/C=US/ST=California/L=San Francisco/O=Test Company/CN=localhost" 1>&2
1616
fi
1717

1818
httpd -DFOREGROUND

0 commit comments

Comments
 (0)