403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/fusionpbx-install.sh/centos/resources/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/fusionpbx-install.sh/centos/resources/arguments.sh
#!/bin/sh

#Process command line options only if we haven't been processed once
if [ -z "$CPU_CHECK" ]; then
	export script_name=`basename "$0"`
	ARGS=$(getopt -n '$script_name' -o h -l help,use-switch-source,use-switch-package-all,use-switch-master,use-switch-package-unofficial-arm,use-system-master,no-cpu-check -- "$@")
	
	if [ $? -ne 0 ]; then
		error "Failed parsing options."
		exit 1
	fi
	
	export USE_SWITCH_SOURCE=false
	export USE_SWITCH_PACKAGE_ALL=false
	export USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=false
	export USE_SWITCH_MASTER=false
	export USE_SYSTEM_MASTER=false
	export CPU_CHECK=true
	HELP=false
	
	while true; do
	  case "$1" in
		--use-switch-source ) export USE_SWITCH_SOURCE=true; shift ;;
		--use-switch-package-all ) export USE_SWITCH_PACKAGE_ALL=true; shift ;;
		--use-switch-master ) export USE_SWITCH_MASTER=true; shift ;;
		--use-system-master ) export USE_SYSTEM_MASTER=true; shift ;;
		--no-cpu-check ) export CPU_CHECK=false; shift ;;
		-h | --help ) HELP=true; shift ;;
		-- ) shift; break ;;
		* ) break ;;
	  esac
	done
	
	if [ .$HELP = .true ]; then
		warning "Debian installer script"
		warning "	--use-switch-source will use freeswitch from source rather than ${green}(default:packages)"
		warning "	--use-switch-package-all if using packages use the meta-all package"
		warning "	--use-switch-package-unofficial-arm if your system is arm and you are using packages, use the unofficial arm repo"
		warning "	--use-switch-master will use master branch/packages for the switch instead of ${green}(default:stable)"
		warning "	--use-system-master will use master branch/packages for the system instead of ${green}(default:stable)"
		warning "	--no-cpu-check disable the cpu check ${green}(default:check)"
		exit;
	fi
fi

Youez - 2016 - github.com/yon3zu
LinuXploit