tests: do not generate dhparam for tests

Tests will run much quicker if we don't need to regenerate this file. Note that this file _should not_ be used within installs.
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-29 04:22:28 -05:00
parent 03ed58600c
commit a54f672b5c
3 changed files with 15 additions and 1 deletions

View File

@@ -31,10 +31,10 @@ chmod 0440 /etc/sudoers.d/dokku-nginx
# if dhparam.pem has not been created, create it the first time
if [[ ! -f /etc/nginx/dhparam.pem ]]; then
openssl dhparam -out /etc/nginx/dhparam.pem 2048
chown root:root /etc/nginx/dhparam.pem
fi
mkdir -p /etc/nginx/conf.d
chown root:root /etc/nginx/dhparam.pem
chown root:root /etc/nginx/conf.d
cat<<EOF > /etc/nginx/conf.d/dokku.conf
include $DOKKU_ROOT/*/nginx.conf;