|
@ -92,10 +92,10 @@ fritzbox_deploy() { |
|
|
_info "Upload certificate to the FRITZ!Box" |
|
|
_info "Upload certificate to the FRITZ!Box" |
|
|
|
|
|
|
|
|
export _H1="Content-type: multipart/form-data boundary=${_post_boundary}" |
|
|
export _H1="Content-type: multipart/form-data boundary=${_post_boundary}" |
|
|
_post "$(cat ${_post_request})" "${_fritzbox_url}/cgi-bin/firmwarecfg" | grep SSL |
|
|
|
|
|
|
|
|
_post "$(cat "${_post_request}")" "${_fritzbox_url}/cgi-bin/firmwarecfg" | grep SSL |
|
|
|
|
|
|
|
|
retval=$? |
|
|
retval=$? |
|
|
if [ $retval = 0 ] ; then |
|
|
|
|
|
|
|
|
if [ $retval = 0 ]; then |
|
|
_info "Upload successful" |
|
|
_info "Upload successful" |
|
|
else |
|
|
else |
|
|
_err "Upload failed" |
|
|
_err "Upload failed" |
|
|