forked from norman/fusionpbx-install.sh-github-mirror
add prompt for install domain and admin user name.
This commit is contained in:
12
debian/resources/config.sh
vendored
12
debian/resources/config.sh
vendored
@@ -1,7 +1,15 @@
|
|||||||
|
|
||||||
# FusionPBX Settings
|
# FusionPBX Settings
|
||||||
domain_name=ip_address # hostname, ip_address or a custom value
|
# Get machine IP for default domain
|
||||||
system_username=admin # default username admin
|
DEFAULT_IP=$(hostname -I | awk '{print $1}')
|
||||||
|
|
||||||
|
printf "Domain name [default: %s]: " "$DEFAULT_IP"
|
||||||
|
read domain_name
|
||||||
|
domain_name=${domain_name:-$DEFAULT_IP}
|
||||||
|
|
||||||
|
printf "System username [default: admin]: "
|
||||||
|
read system_username
|
||||||
|
system_username=${system_username:-admin}
|
||||||
system_password=random # random or a custom value
|
system_password=random # random or a custom value
|
||||||
system_branch=5.5 # master, 5.5
|
system_branch=5.5 # master, 5.5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user