mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
owsd: start owsd without ubusproxy args if ubusx validation fails
This commit is contained in:
parent
a9b3b78a13
commit
947da034bb
1 changed files with 26 additions and 24 deletions
|
|
@ -269,11 +269,12 @@ start_service() {
|
||||||
[ -n "${redirect}" ] && procd_append_param command -r"${redirect}"
|
[ -n "${redirect}" ] && procd_append_param command -r"${redirect}"
|
||||||
[ -n "${www_maxage}" ] && procd_append_param command -t"${www_maxage}"
|
[ -n "${www_maxage}" ] && procd_append_param command -t"${www_maxage}"
|
||||||
|
|
||||||
validate_owsd_ubusproxy || {
|
#validate_owsd_ubusproxy || {
|
||||||
echo "Ubusproxy validation failed"
|
# echo "Ubusproxy validation failed"
|
||||||
return 1
|
# return 1
|
||||||
}
|
#}
|
||||||
|
|
||||||
|
validate_owsd_ubusproxy && {
|
||||||
if [ "${enable}" -eq 1 ]; then
|
if [ "${enable}" -eq 1 ]; then
|
||||||
procd_append_param command -U
|
procd_append_param command -U
|
||||||
|
|
||||||
|
|
@ -294,6 +295,7 @@ start_service() {
|
||||||
|
|
||||||
[ "${prefix}" == "mac" ] && procd_append_param command -F"mac"
|
[ "${prefix}" == "mac" ] && procd_append_param command -F"mac"
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
config_foreach parse_owsd_iface "owsd-listen"
|
config_foreach parse_owsd_iface "owsd-listen"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue