Linux ip-172-26-5-244 6.1.0-28-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64
Apache
: 172.26.5.244 | : 216.73.216.21
Cant Read [ /etc/named.conf ]
8.3.14
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
bitnami /
scripts /
varnish /
[ HOME SHELL ]
Name
Size
Permission
Action
postunpack.sh
3.95
KB
-rwxr-xr-x
resize.sh
508
B
-rwxr-xr-x
restart.sh
442
B
-rwxr-xr-x
run.sh
590
B
-rwxr-xr-x
setup.sh
1.32
KB
-rwxr-xr-x
start.sh
837
B
-rwxr-xr-x
status.sh
508
B
-rwxr-xr-x
stop.sh
734
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : postunpack.sh
#!/bin/bash # Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # shellcheck disable=SC1091 set -o errexit set -o nounset set -o pipefail # set -o xtrace # Uncomment this line for debugging purposes # Load libraries . /opt/bitnami/scripts/libvarnish.sh . /opt/bitnami/scripts/libfs.sh . /opt/bitnami/scripts/libos.sh # Load Varnish environment . /opt/bitnami/scripts/varnish-env.sh # Ensure non-root user has write permissions on a set of directories for dir in "$VARNISH_CONF_DIR" "$VARNISH_TMP_DIR"; do ensure_dir_exists "$dir" chmod -R g+rwX "$dir" done # Enable Varnish configuration file [[ ! -f "$VARNISH_DEFAULT_CONF_FILE" ]] && cp "${VARNISH_BASE_DIR}/share/doc/varnish/builtin.vcl" "$VARNISH_DEFAULT_CONF_FILE" # Configure default backend varnish_backend_configuration="$(cat <<EOF vcl 4.0; backend default { .host = "${VARNISH_DEFAULT_BACKEND_ADDRESS}"; .port = "${VARNISH_DEFAULT_BACKEND_PORT_NUMBER}"; } EOF )" ensure_varnish_configuration_exists $'\n'"$varnish_backend_configuration" "backend default" # Load additional required libraries # shellcheck disable=SC1091 . /opt/bitnami/scripts/libos.sh . /opt/bitnami/scripts/liblog.sh . /opt/bitnami/scripts/libfile.sh . /opt/bitnami/scripts/libservice.sh info "Creating Varnish daemon user" ensure_user_exists "$VARNISH_DAEMON_USER" --group "$VARNISH_DAEMON_GROUP" # Create configuration files for setting Varnish optimization parameters depending on the instance size # Memory will be set to 1/8th of the system total amount of memory # - Threads will be set to double the amount of CPU cores in the instance type # Default to micro configuration until a resize is performed ensure_dir_exists "${VARNISH_CONF_DIR}/bitnami" ln -sf "bitnami/memory-micro.conf" "${VARNISH_CONF_DIR}/memory.conf" read -r -a supported_machine_sizes <<< "$(get_supported_machine_sizes)" for machine_size in "${supported_machine_sizes[@]}"; do case "$machine_size" in micro) malloc=64M ;; small) malloc=128M ;; medium) malloc=256M ;; large) malloc=512M ;; xlarge) malloc=1024M ;; 2xlarge) malloc=2048M ;; *) error "Unknown machine size '${machine_size}'" exit 1 ;; esac cat >"${VARNISH_CONF_DIR}/bitnami/memory-${machine_size}.conf" <<EOF # Bitnami memory configuration for Varnish # # Note: This will be modified on server size changes export VARNISH_STORAGE=malloc,${malloc} EOF done # Enable extra service management configuration # Varnish does not create any log file that can be rotated, so the Logrotate configuration is skipped if [[ "$BITNAMI_SERVICE_MANAGER" = "monit" ]]; then if is_boolean_yes "$VARNISH_DISABLE_SERVICE"; then generate_monit_conf "varnish" "$VARNISH_PID_FILE" /opt/bitnami/scripts/varnish/start.sh /opt/bitnami/scripts/varnish/stop.sh --disable else generate_monit_conf "varnish" "$VARNISH_PID_FILE" /opt/bitnami/scripts/varnish/start.sh /opt/bitnami/scripts/varnish/stop.sh fi elif [[ "$BITNAMI_SERVICE_MANAGER" = "systemd" ]]; then # Add the 'VARNISH_CONF_FILE' environment to allow users to easily be able to change the configuration file # https://docs.varnish-software.com/tutorials/configuring-systemd-services/#check-service-status generate_systemd_conf "varnish" \ --name "Varnish Cache" \ --exec-start "bash -c \". /opt/bitnami/scripts/varnish-env.sh; . /opt/bitnami/varnish/etc/varnish/memory.conf; ${VARNISH_SBIN_DIR}/varnishd -j unix,user=${VARNISH_DAEMON_USER},ccgroup=${VARNISH_DAEMON_GROUP} -P ${VARNISH_PID_FILE} -f \$VARNISH_CONF_FILE -a :\$VARNISH_PORT_NUMBER -T localhost:$VARNISH_ADMIN_PORT_NUMBER -S $VARNISH_SECRET_FILE -t $VARNISH_TTL -s \$VARNISH_STORAGE\"" \ --pid-file "$VARNISH_PID_FILE" else error "Unsupported service manager ${BITNAMI_SERVICE_MANAGER}" exit 1 fi
Close