Skip to content

Commit a738a7d

Browse files
committed
Openssl complains when .rnd file is missing
fixes issue hestiacp#368
1 parent 42cb35c commit a738a7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-generate-ssl-cert

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ args_usage='DOMAIN EMAIL COUNTRY STATE CITY ORG UNIT [ALIASES] [FORMAT]'
6969
check_args '7' "$#" "$args_usage"
7070
is_format_valid 'domain_alias' 'format'
7171

72+
if [ ! -f /root/.rnd ]; then
73+
touch /root/.rnd
74+
fi
7275

7376
#----------------------------------------------------------#
7477
# Action #

0 commit comments

Comments
 (0)