File: postinst

package info (click to toggle)
nginx-snippets 1.0%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 64 kB
  • sloc: sh: 9; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 458 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# postinst script for nginx-snippets.

set -e

# Generate the /etc/nginx/dhparam2048.pem if the file doesn't 
# already exist.
if [ ! -e /etc/nginx/dhparam2048.pem ]; then
  echo "Generating dhparam with 2048 bits. This may take some time."
  openssl dhparam -out /etc/nginx/dhparam2048.pem 2048
  echo "Generated dhparam file with 2048 bits in /etc/nginx/dhparam2048.pem"
else
  echo "dhparam2048.pem file already exists."
fi

#DEBHELPER#

exit 0