Skip to content

Commit

Permalink
PMM-12738 a few improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Dec 21, 2023
1 parent c670ec0 commit 041087e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
set -o errexit

mkdir -p /srv/nginx

# Check if /srv/nginx is writable
# if not, check if the user provided the certificate files and use them.
if [ ! -w "/srv/nginx" ]; then
echo "Directory /srv/nginx is not writable";
error=false
Expand Down Expand Up @@ -36,7 +39,7 @@ if [ ! -w "/srv/nginx" ]; then
exit 1;
fi

echo "Using existing self-signed certificate.";
echo "Using user provided certificate.";
exit 0;
fi

Expand Down

0 comments on commit 041087e

Please sign in to comment.