浏览代码

BugFix use sh function definition (#20)

Mafoo 9 年之前
父节点
当前提交
c8058538ab
共有 2 个文件被更改,包括 2 次插入2 次删除
  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.
 
 ```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.

+ 1 - 1
install.sh

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