403Webshell
Server IP : 104.21.93.192  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/dev/ci/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/dev/ci/setup-host
#!/usr/bin/env bash
set -eo pipefail

SELFDIR=$(dirname "$0")
SELFDIR=$(cd "$SELFDIR" && pwd)
PASSENGER_ROOT=$(cd "$SELFDIR/../.." && pwd)
# shellcheck source=lib/functions.sh
source "$SELFDIR/lib/functions.sh"
cd "$PASSENGER_ROOT"

header "Setting up stuff on the host"

autodetect_environment
sanity_check_environment
echo

if [[ "$OS" = macos && "$1" = "" ]]; then
	echo "Usage: ./dev/ci/setup-host <TEST NAME>" >&2
	exit 1
fi

if $IN_JENKINS; then
	# Relax permissions. Necessary for unit tests which test permissions.
	header2 "Relaxing file permissions"
	echo "+ Setting umask"
	umask u=rwx,g=rx,o=rx
	run chmod g+rx,o+rx .
	echo "+ chmodding files"
	find ./* -type f -print0 | xargs -0 -n 512 chmod g+r,o+r
	echo "+ chmodding directories"
	find ./* -type d -print0 | xargs -0 -n 512 chmod g+rx,o+rx

	# Create this file now because otherwise it would be owned by root,
	# which Jenkins cannot remove.
	run touch test/test.log

	echo
fi

header2 "Creating cache directories"
run mkdir -p "$CACHE_DIR"
run mkdir -p "$CACHE_DIR/bundle"
run mkdir -p "$CACHE_DIR/ccache"
run mkdir -p "$CACHE_DIR/npm"
echo

# Directory must exist so that Jenkinsfile can run archiveArtefacts().
header2 "Creating buildout directory"
run mkdir -p buildout buildout/testlogs
echo

if [[ "$OS" = macos ]]; then
	export CI_COMMAND="./dev/ci/setup-host $*"
	exec "$PASSENGER_ROOT/dev/ci/scripts/debug-console-wrapper.sh" \
		"$PASSENGER_ROOT/dev/ci/scripts/setup-host-natively.sh" "$@"
fi

Youez - 2016 - github.com/yon3zu
LinuXploit