diff --git a/blueprints/unifi/install.sh b/blueprints/unifi/install.sh index e1c90466..e51f13ae 100755 --- a/blueprints/unifi/install.sh +++ b/blueprints/unifi/install.sh @@ -63,7 +63,7 @@ iocage exec "${1}" sysrc unifi_enable=YES iocage exec "${1}" service unifi start # shellcheck disable=SC2154 -if [ "${!POLLER}" = true ]; then +if [ "${!POLLER}" == true ]; then # Check if influxdb container exists, create unifi database if it does, error if it is not. echo "Checking if the database jail and database exist..." if [[ -d /mnt/"${global_dataset_iocage}"/jails/"${!DB_JAIL}" ]]; then diff --git a/blueprints/unifi/update.sh b/blueprints/unifi/update.sh index 5577ceb6..424a7863 100755 --- a/blueprints/unifi/update.sh +++ b/blueprints/unifi/update.sh @@ -5,7 +5,7 @@ POLLER="jail_${1}_unifi_poller" # shellcheck disable=SC2154 -if [ "${!POLLER}" = true ]; then +if [ "${!POLLER}" == true ]; then FILE_NAME=$(curl -s https://api.github.com/repos/unifi-poller/unifi-poller/releases/latest | jq -r ".assets[] | select(.name | contains(\"amd64.txz\")) | .name") DOWNLOAD=$(curl -s https://api.github.com/repos/unifi-poller/unifi-poller/releases/latest | jq -r ".assets[] | select(.name | contains(\"amd64.txz\")) | .browser_download_url")