Merge pull request #2780 from vlauciani/master
Fix nginx default.key permission
This commit is contained in:
commit
836470a99b
@ -4,6 +4,7 @@ if [ ! -f /etc/nginx/ssl/default.crt ]; then
|
|||||||
openssl genrsa -out "/etc/nginx/ssl/default.key" 2048
|
openssl genrsa -out "/etc/nginx/ssl/default.key" 2048
|
||||||
openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK"
|
openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK"
|
||||||
openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt"
|
openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt"
|
||||||
|
chmod 644 /etc/nginx/ssl/default.key
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start crond in background
|
# Start crond in background
|
||||||
|
Loading…
Reference in New Issue
Block a user