summarylogtreecommitdiffstats
path: root/pixelserv-ca-init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pixelserv-ca-init.sh')
-rwxr-xr-xpixelserv-ca-init.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/pixelserv-ca-init.sh b/pixelserv-ca-init.sh
index 5d58f5875843..d978948e2be6 100755
--- a/pixelserv-ca-init.sh
+++ b/pixelserv-ca-init.sh
@@ -4,7 +4,9 @@
TARGET_DIR='/var/cache/pixelserv'
# ensure the target directory exists
-if [[ ! -d "$TARGET_DIR" ]]; then
+if [[ -d "$TARGET_DIR" ]]; then
+ echo "$TARGET_DIR already exists. Consider to remove it before generating new certificates"
+else
sudo mkdir -pv "$TARGET_DIR"
fi