Fixed ssl volume

master
Keith Irwin 2022-09-10 19:13:47 -06:00
parent 4a96eb51be
commit 7a0691cd98
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 3 additions and 3 deletions

View File

@ -32,8 +32,8 @@ ipstring="${3}"
printf 'Signing SSL certs for %s.%s.%s...\n' "${hostname}" "${username}" "${TLD}" >>"${LOGFILE}"
# Make a directory for the new files
if ! res="$(sudo mkdir "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/")"; then
printf 'Failed to create directory %s/%s/%s/:\n%s\n' "${SSL_CONFIG_DIR}" "${username}" "${hostname}" "${res}" >>"${LOGFILE}"
if ! sudo mkdir "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/"; then
printf 'Failed to create directory %s/%s/%s/:\n' "${SSL_CONFIG_DIR}" "${username}" "${hostname}" >>"${LOGFILE}"
exit 7
fi

View File

@ -7,7 +7,7 @@ services:
- NET_ADMIN
network_mode: host
volumes:
- '/etc/private:/etc/private'
- '/etc/ssl/private:/etc/ssl/private'
- '/etc/wgapi:/etc/wgapi:ro'
- '/var/log/wgapi:/var/log/wgapi'
- './back/lib:/usr/local/bin:ro'