Files
terraform-provider-unifi/scripts/init.d/demo-mode
Joshua Spence 503a80ea2c Provision a gateway device for acceptance tests (#357)
We don't strictly need a gateway, but it makes it easier to poke around the UI.
2023-03-24 09:19:12 +11:00

13 lines
309 B
Bash
Executable File

#!/bin/sh
write_config() {
echo "${1}=${2}" >> /usr/lib/unifi/data/system.properties
}
write_config is_simulation true
# Increase the number of demo devices to allow more concurrent tests to be executed simultaneously.
write_config demo.num_uap 0
write_config demo.num_ugw 1
write_config demo.num_usw 20