Explorar el Código

BugFix use sh function definition (#20)

Mafoo hace 9 años
padre
commit
c8058538ab
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      README.md
  2. 1 1
      install.sh

+ 1 - 1
README.md

@@ -4,7 +4,7 @@ fusionpbx-install.sh
 This install script that has been designed to be an fast, simple, and modular way to to install FusionPBX. Start with a minimal install of Debian 8 with SSH enabled. Run the following commands under root. It installs FusionPBX, FreeSWITCH release package and its dependencies, IPTables, Fail2ban, NGINX, PHP FPM, and PostgresQL.
 This install script that has been designed to be an fast, simple, and modular way to to install FusionPBX. Start with a minimal install of Debian 8 with SSH enabled. Run the following commands under root. It installs FusionPBX, FreeSWITCH release package and its dependencies, IPTables, Fail2ban, NGINX, PHP FPM, and PostgresQL.
 
 
 ```bash
 ```bash
-wget https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/install.sh -O install.sh && bash install.sh
+wget https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/install.sh -O install.sh && sh install.sh
 ```
 ```
 
 
 At the end of the install it will instruct you to go to the ip address of the server in your web browser to finish the install. It will also provide a random database password for you to use during the web based phase of the install. The install script builds the fusionpbx database so you will not need to use the create database username and password on the last page of the web based install.
 At the end of the install it will instruct you to go to the ip address of the server in your web browser to finish the install. It will also provide a random database password for you to use during the web based phase of the install. The install script builds the fusionpbx database so you will not need to use the create database username and password on the last page of the web based install.

+ 1 - 1
install.sh

@@ -11,7 +11,7 @@ check_OS=$(lsb_release -is)
 check_Release_Major=$(lsb_release -rs | cut -d. -f1)
 check_Release_Major=$(lsb_release -rs | cut -d. -f1)
 lsb_release -c | grep -i jessie > /dev/null
 lsb_release -c | grep -i jessie > /dev/null
 
 
-function unsupported_OS {
+unsupported_OS () {
 		echo " Your OS appears to be: "
 		echo " Your OS appears to be: "
 		lsb_release -a
 		lsb_release -a
 		echo " Your OS is not currently supported... Exiting the install."
 		echo " Your OS is not currently supported... Exiting the install."