Moved to better status codes
parent
960ed70b52
commit
92094e5c0d
|
@ -7,6 +7,7 @@
|
|||
status=''
|
||||
case "${1}" in
|
||||
''|'0'|'200') status='200 OK\n';;
|
||||
'201') status='201 Created\n';;
|
||||
'202') status='202 Accepted\n';;
|
||||
'400') status='400 Bad Request\n';;
|
||||
'500') status='500 Internal Server Error\n';;
|
||||
|
|
|
@ -126,7 +126,7 @@ wg_config="[Interface] # ${hostname}.${username}.${TLD}\nPrivateKey=${privkey}\n
|
|||
# if wireguard worked, there's no going back. The admin
|
||||
# can clean up missing records and certs after checking the logs
|
||||
set -x
|
||||
<<<"${wg_config}" "${LIB_DIR}/http_res"
|
||||
<<<"${wg_config}" "${LIB_DIR}/http_res" 202
|
||||
set +x
|
||||
|
||||
# Update nameserver
|
||||
|
|
Loading…
Reference in New Issue