Fix traefik acme.json creation error.

This commit is contained in:
Llewellyn van der Merwe 2023-03-14 15:45:09 +02:00
parent ea1ff59177
commit 603804af74
Signed by: Llewellyn
GPG Key ID: A9201372263741E7
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# The most recent program version.
_VERSION="3.2.0"
_VERSION="3.2.1"
_V="3.2"
# The program full name
@ -105,6 +105,14 @@ function traefik__TRuST__setup() {
showError "You must enter an email for the Letsencrypt setup."
}
done
# make sure the directory exist
mkdir -p "${VDM_PROJECT_PATH}/traefik"
# we must create this, else docker creates a folder
echo "{}" > "${VDM_PROJECT_PATH}/traefik/acme.json"
# make sure the permission are good
sudo chmod 600 "${VDM_PROJECT_PATH}/traefik/acme.json"
# and is owned by root
sudo chown -R root:root "${VDM_PROJECT_PATH}/traefik"
else
VDM_REMOVE_SECURE="#"
VDM_HTTP_SCHEME="http"