From bdd8df9c6005a3fc04c3e457bec77590c93fbcd8 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 2 Oct 2024 20:48:14 -0700 Subject: [PATCH] wildduck: fix tls mkdir syntax --- provision/wildduck.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provision/wildduck.sh b/provision/wildduck.sh index 4172f3aa..eed6895c 100755 --- a/provision/wildduck.sh +++ b/provision/wildduck.sh @@ -114,9 +114,9 @@ install_pm2() configure_tls() { local _tls_dir="$STAGE_MNT/data/etc/tls" - if [ ! -d "$_tls_dir" ]; then mkdir "$_tls_dir" 0755; fi - if [ ! -d "$_tls_dir/certs" ]; then mkdir "$_tls_dir/certs" 0755; fi - if [ ! -d "$_tls_dir/private" ]; then mkdir "$_tls_dir/private" 0700; fi + if [ ! -d "$_tls_dir" ]; then mkdir -m 0755 "$_tls_dir" ; fi + if [ ! -d "$_tls_dir/certs" ]; then mkdir -m 0755 "$_tls_dir/certs" ; fi + if [ ! -d "$_tls_dir/private" ]; then mkdir -m 0700 "$_tls_dir/private"; fi if [ -f "/root/.acme/$WILDDUCK_HOSTNAME/$WILDDUCK_HOSTNAME.cer" ]; then install "/root/.acme/$WILDDUCK_HOSTNAME/fullchain.cer" "$_tls_dir/certs/$WILDDUCK_HOSTNAME.pem"