403Webshell
Server IP : 104.129.129.72  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : answe8064 ( 1002)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/installer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/installer/installer
#!/bin/bash

installerDir=$(dirname "$(readlink -f $0)")

if [ ! -z "$2" ]; then

	for argument in ${@:2}; do

		case "$argument" in

		nospecialkey)

			export CWM_NO_API_KEY=1
			;;

		debug)

			export CWM_DEBUG=1
			;;

		esac

	done

fi

. include/startup.sh

if [ -z "$1" ]; then

	if [ ! -f "./installer.conf" ]; then

		echo -e "installer.conf file not found.\n Usage: ./installer installer.config.file.conf" | log 1
		exit 1
	fi

	. ./installer.conf

else

	if [ ! -f "$1" ]; then

		echo "$1 file not found." | log 1
		exit 1

	fi

	. $1

fi

checkRootUser
checkOs

for run in "${execute[@]}"; do

	echo "Executing ${run}" | log
	${run}
	scriptExitCode=$?

	case "$scriptExitCode" in
	0)
		echo "Done. (0)" | log
		continue
		;;
	1)
		# error log message provided by script
		exit 1
		;;
	98)
		echo "Exit Code 98. Script already executed, can run only once. Continuing. (98)" | log
		continue
		;;
	99)
		echo "Exit Code 99. Continuing. (99)" | log
		continue
		;;
	127)
		echo "Error. ${run} not found. dying. (127)" | log 1
		exit 1
		;;
	*)
		echo "Exit Code not configured. Dying. ($scriptExitCode)" | log 1
		exit 1
		;;
	esac

done

# remove tag from startup-cwm.sh after install is completed
echo "Removing installer leftovers" | log
untag globals-set.success

Youez - 2016 - github.com/yon3zu
LinuXploit