modify installer for new config

This commit is contained in:
t3chn0m4g3
2016-08-01 13:25:58 +00:00
parent 12842527bb
commit 62b349eab3
15 changed files with 261 additions and 369 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