Skip to content

Commit

Permalink
Send credentials to admin email
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Jan 21, 2025
1 parent 232d2da commit 23dec27
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ if [ -f ./scripts/install_php.sh ]; then
fi

### Phalcon PHP installation ###
if [ -f ./scripts/install_phalcon.sh ]; then
echo ""
. ./scripts/install_phalcon.sh
fi
#if [ -f ./scripts/install_phalcon.sh ]; then
# echo ""
# . ./scripts/install_phalcon.sh
#fi

### MySQL database installation ###
if [ -f ./scripts/install_mariadb.sh ]; then
Expand Down Expand Up @@ -284,7 +284,9 @@ Please Save the above Credentials & Keep it Secure!
status "${CREDENTIALS}"

# Send credentials to admin email.
run bash -c "echo '${CREDENTIALS}' | mail -s 'LEMPer Stack Credentials for ${SERVER_IP}' ${LEMPER_ADMIN_EMAIL}"
if [[ -n $(command -v mail) ]]; then
run bash -c "echo '${CREDENTIALS}' | mail -s 'LEMPer Stack Credentials for ${SERVER_IP}' ${LEMPER_ADMIN_EMAIL}"
fi

# Save it to log file
#save_log "${CREDENTIALS}"
Expand Down

0 comments on commit 23dec27

Please sign in to comment.