mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-04-12 02:28:26 -04:00
Use absolute path for docker volume bind mounts (#859)
This commit is contained in:
committed by
Leendert de Borst
parent
ebb0e7cf68
commit
bd41507ef9
@@ -1254,11 +1254,14 @@ configure_letsencrypt() {
|
||||
printf "${CYAN}> Creating Let's Encrypt directories...${NC}\n"
|
||||
mkdir -p ./certificates/letsencrypt/www
|
||||
|
||||
# Get absolute path for certificates directory for the docker bind mounts
|
||||
CERTIFICATES_DIR=$(realpath ./certificates)
|
||||
|
||||
# Request certificate using a temporary certbot container
|
||||
printf "${CYAN}> Requesting Let's Encrypt certificate...${NC}\n"
|
||||
docker run --rm \
|
||||
-v ./certificates/letsencrypt:/etc/letsencrypt:rw \
|
||||
-v ./certificates/letsencrypt/www:/var/www/certbot:rw \
|
||||
-v "${CERTIFICATES_DIR}/letsencrypt:/etc/letsencrypt:rw" \
|
||||
-v "${CERTIFICATES_DIR}/letsencrypt/www:/var/www/certbot:rw" \
|
||||
certbot/certbot certonly \
|
||||
--webroot \
|
||||
--webroot-path=/var/www/certbot \
|
||||
|
||||
Reference in New Issue
Block a user