FusionPBX 8 жил өмнө
parent
commit
2422f14bb5
1 өөрчлөгдсөн 16 нэмэгдсэн , 10 устгасан
  1. 16 10
      freebsd/resources/switch.sh

+ 16 - 10
freebsd/resources/switch.sh

@@ -6,7 +6,21 @@ cd "$(dirname "$0")"
 #includes
 . ./config.sh
 
-if [ .$switch_source = .true ]; then
+#install the package
+if [ .$switch_source = "package" ]; then
+	#run the package install
+	switch/package-release.sh
+
+	#copy the switch conf files
+	switch/package-conf-copy.sh
+
+	#set the file permissions
+	switch/package-permissions.sh
+fi
+
+#install from source
+if [ .$switch_source = "source" ]; then
+	#compile the source
 	if [ ."$switch_branch" = "master" ]; then
 		switch/source-master.sh
 	else
@@ -14,16 +28,8 @@ if [ .$switch_source = .true ]; then
 	fi
 
 	#copy the switch conf files
-	switch/conf-copy.sh
+	switch/source-conf-copy.sh
 
 	#set the file permissions
 	switch/source-permissions.sh
 fi
-
-if [ .$switch_package = .true ]; then
-	if [ ."$switch_branch" = "master" ]; then
-
-	else
-
-	fi
-fi