stevejenkins/unifi-linux-utils

Not running on Debian

Closed this issue · 1 comments

At least under Debian this won't work:
uap_list=( "192.168.0.2" "192.168.0.3" )

This is the error:
root@unifi:/etc/cron.daily# sh uap_reboot.sh
uap_reboot.sh: 20: uap_reboot.sh: Syntax error: "(" unexpected

but changing the line to
uap_list=( 192.168.0.2 192.168.0.3 )
solves the problem.

I've verified this also works on CentOS, so will make this change.