Fixed ssl volume
parent
4a96eb51be
commit
7a0691cd98
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue