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}"
|
printf 'Signing SSL certs for %s.%s.%s...\n' "${hostname}" "${username}" "${TLD}" >>"${LOGFILE}"
|
||||||
|
|
||||||
# Make a directory for the new files
|
# Make a directory for the new files
|
||||||
if ! res="$(sudo mkdir "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/")"; then
|
if ! 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}"
|
printf 'Failed to create directory %s/%s/%s/:\n' "${SSL_CONFIG_DIR}" "${username}" "${hostname}" >>"${LOGFILE}"
|
||||||
exit 7
|
exit 7
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
network_mode: host
|
network_mode: host
|
||||||
volumes:
|
volumes:
|
||||||
- '/etc/private:/etc/private'
|
- '/etc/ssl/private:/etc/ssl/private'
|
||||||
- '/etc/wgapi:/etc/wgapi:ro'
|
- '/etc/wgapi:/etc/wgapi:ro'
|
||||||
- '/var/log/wgapi:/var/log/wgapi'
|
- '/var/log/wgapi:/var/log/wgapi'
|
||||||
- './back/lib:/usr/local/bin:ro'
|
- './back/lib:/usr/local/bin:ro'
|
||||||
|
|
Loading…
Reference in New Issue