| Server IP : 52.25.153.185 / Your IP : 216.73.216.168 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/scripts/init/ |
Upload File : |
#!/bin/sh
#
# Create a separate file with credentials based on welcome message.
# Copyright 2022 Bitnami.com All Rights Reserved
#
. /opt/bitnami/scripts/init/functions
if [ "xbitnami" != "xroot" ] && [ -d "/home/bitnami" ]; then
USERHOME="/home/bitnami"
else
USERHOME="/root"
fi
cp /dev/null $USERHOME/bitnami_credentials || exit 1
chown bitnami:bitnami $USERHOME/bitnami_credentials || exit 1
chmod 0400 $USERHOME/bitnami_credentials || exit 1
bitnami_credentials_header() {
echo "Welcome to the WordPress Multisite packaged by Bitnami"
echo
application_password=`get_applications_password`
if [ "x$application_password" = "x" ] ; then
application_password='some-secret-password'
fi
# If the application uses password and we have configured one
if [ "xsome-secret-password" != "x" -a "x$application_password" != "x" ]; then
if [ "xuser" != "x" ] ; then
echo "******************************************************************************"
echo "The default username and password is 'user' and '$application_password'."
echo "******************************************************************************"
echo
else
echo "******************************************************************************"
echo "The default password is '$application_password'."
echo "******************************************************************************"
echo
fi
echo "You can also use this password to access the databases and any other component the stack includes."
echo
fi
echo "Please refer to https://docs.bitnami.com/ for more details."
echo
}
run_once_globally_check "bitnami_credentials_template"
if [ $? -eq 0 ]; then
mkdir -p "$DATA_DIR/bitnami_credentials" && chmod 0755 "$DATA_DIR/bitnami_credentials" && rm -f "$DATA_DIR/bitnami_credentials/*"
bitnami_credentials_header >$DATA_DIR/bitnami_credentials/credentials
fi
cat $DATA_DIR/bitnami_credentials/credentials > $USERHOME/bitnami_credentials