owsd: start owsd without ubusproxy args if ubusx validation fails

This commit is contained in:
Jakob Olsson 2019-06-17 09:47:12 +02:00
parent a9b3b78a13
commit 947da034bb

View file

@ -269,11 +269,12 @@ start_service() {
[ -n "${redirect}" ] && procd_append_param command -r"${redirect}"
[ -n "${www_maxage}" ] && procd_append_param command -t"${www_maxage}"
validate_owsd_ubusproxy || {
echo "Ubusproxy validation failed"
return 1
}
#validate_owsd_ubusproxy || {
# echo "Ubusproxy validation failed"
# return 1
#}
validate_owsd_ubusproxy && {
if [ "${enable}" -eq 1 ]; then
procd_append_param command -U
@ -294,6 +295,7 @@ start_service() {
[ "${prefix}" == "mac" ] && procd_append_param command -F"mac"
fi
}
config_foreach parse_owsd_iface "owsd-listen"