Server IP : 52.91.253.208 / Your IP : 18.225.235.144 [ Web Server : Apache System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64 User : daemon ( 1) PHP Version : 7.3.18 Disable Function : NONE Domains : 3 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/scripts/init/ |
Upload File : |
#!/bin/sh # # Configure the default password in all services and applications # Copyright 2020 Bitnami.com All Rights Reserved # . /opt/bitnami/scripts/init/functions # when run with --force option, set the password regardless of flag if [ "x$1" != "x--force" ] ; then run_once_globally_check "configure_default_passwords" if [ $? -ne 0 ]; then exit 0 fi fi # get if password should be modified PASSWD="`get_applications_password`" if [ "x$PASSWD" = "x" ] ; then echo "Not setting Bitnami application passwords" exit 0 fi # start database services for SERVICE in mysql mariadb postgresql mongodb ; do /opt/bitnami/ctlscript.sh start $SERVICE </dev/null >/dev/null 2>&1 done # set password for all services and start them # so password can be set for applications depending on them for BNCONFIG in `find /opt/bitnami -maxdepth 2 -name bnconfig -executable` ; do BNCONFIGDIR="`dirname "$BNCONFIG"`" BNCONFIGDIRNAME="`basename "$BNCONFIGDIR"`" echo "[`date`] Setting up password for $BNCONFIGDIRNAME service" "$BNCONFIG" --userpassword "$PASSWD" echo "[`date`] Setting up password for $BNCONFIGDIRNAME service finished" done # start database services for SERVICE in mysql mariadb postgresql mongodb ; do /opt/bitnami/ctlscript.sh start $SERVICE </dev/null >/dev/null 2>&1 done # set password for all applications; set public IP as well for BNCONFIG in `find /opt/bitnami/apps -maxdepth 2 -name bnconfig -executable` ; do BNCONFIGDIR="`dirname "$BNCONFIG"`" BNCONFIGDIRNAME="`basename "$BNCONFIGDIR"`" echo "[`date`] Setting up password for $BNCONFIGDIRNAME application" "$BNCONFIG" --userpassword "$PASSWD" echo "[`date`] Setting up password for $BNCONFIGDIRNAME application finished" done echo "[`date`] Finished setting password"