mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-12-05 00:22:19 +00:00
warn if key/cert have not been found
This commit is contained in:
parent
eba0982e03
commit
e01342241a
@ -387,14 +387,23 @@ X
|
||||
my $t = $c{_basic_path_PEM_key};
|
||||
if ($t) {
|
||||
$t = "$config/$t" unless $t =~ m#^/#;
|
||||
print STDERR <<X unless -r $t;
|
||||
WARNING: Key file $t does not exist.
|
||||
X
|
||||
$psyced .= " --tls-key $t";
|
||||
}
|
||||
if ($t = $c{_basic_path_PEM_certificate}) {
|
||||
$t = "$config/$t" unless $t =~ m#^/#;
|
||||
print STDERR <<X unless -r $t;
|
||||
WARNING: Certificate file $t does not exist.
|
||||
X
|
||||
$psyced .= " --tls-cert $t";
|
||||
}
|
||||
if ($t = $c{_basic_path_trust}) {
|
||||
$t = "$config/$t" unless $t =~ m#^/#;
|
||||
print STDERR <<X unless -r $t;
|
||||
WARNING: Trust directory $t does not exist.
|
||||
X
|
||||
$psyced .= " --tls-trustdirectory $t";
|
||||
}
|
||||
# ldmud doesn't support this yet
|
||||
|
@ -319,6 +319,9 @@ get USER "psyc"
|
||||
if test "x$USER" = "xroot"; then
|
||||
echo ""
|
||||
echo "You shouldn't run psyced as root, so what about a 'psyc' user?"
|
||||
# indigo6 thinks we should run useradd here, even if some unices
|
||||
# do not provide that command. we can >/dev/null the error though...
|
||||
echo "If the user doesn't exist yet, please make one."
|
||||
fi
|
||||
#while true
|
||||
#do
|
||||
@ -335,6 +338,7 @@ fi
|
||||
get GROUP "psyc"
|
||||
#while true
|
||||
#do
|
||||
echo "If such a group doesn't exist yet, please create it now."
|
||||
ask "Which group do you want to run psyced as" GROUP
|
||||
# if `id -Gn $USER | grep $GROUP > /dev/null`
|
||||
# then
|
||||
|
Loading…
Reference in New Issue
Block a user