prepare for nginx docker image

This commit is contained in:
Marco Ochse
2018-02-16 15:17:34 +01:00
parent 8e76d4c909
commit 46c92047cb
17 changed files with 439 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/bin/bash
# Got root?
myWHOAMI=$(whoami)
if [ "$myWHOAMI" != "root" ]
then
echo "Need to run as root ..."
exit
fi
if [ "$1" = "2048" ] || [ "$1" = "4096" ] || [ "$1" = "8192" ]
then
openssl dhparam -outform PEM -out dhparam$1.pem $1
else
echo "Usage: ./gen-dhparam [2048, 4096, 8192]..."
fi