stevejenkins / unifi-linux-utils

Helpful Linux / Unix scripts for admins of Ubiquiti (UBNT) UniFi wireless products
https://www.stevejenkins.com/blog/tag/unifi/
MIT License
695 stars 127 forks source link

Not running on Debian #15

Closed pcolomes closed 6 years ago

pcolomes commented 6 years ago

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.

stevejenkins commented 6 years ago

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