Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-07-16 15:49:53 +02:00 committed by GitHub
parent ac83e17c51
commit c9b9565d39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,7 +230,6 @@ print_space_and_line
support_message support_message
print_space_and_line print_space_and_line
create_admin_and_show_logins_success_message create_admin_and_show_logins_success_message
set_email_address_and_email_admin_logins
run_custom_postinstall_script run_custom_postinstall_script
) )
@ -1006,16 +1005,16 @@ set_email_address_and_email_admin_logins(){
fi fi
# Send email using appropriate protocol # Send email using appropriate protocol
curl -k -X POST "$PROTOCOL://127.0.0.1:2087/send_email" -F "transient=$TRANSIENT" -F "recipient=$EMAIL" -F "subject=$title" -F "body=$message" > /dev/null 2>&1 curl -k -X POST "$PROTOCOL://127.0.0.1:2087/send_email" -F "transient=$TRANSIENT" -F "recipient=$EMAIL" -F "subject=$title" -F "body=$message"
} }
server_hostname=$(hostname) server_hostname=$(hostname)
if [ "$SET_PREMIUM" = true ]; then if [ "$SET_PREMIUM" = true ]; then
email_notification "OpenPanel Enterprise ${version} successfully installed" "OpenAdmin URL: http://$server_hostname:2087/ | username: $new_username | password: $new_password" email_notification "OpenPanel Enterprise ${version} successfully installed" "OpenAdmin URL: http://$server_hostname:2087/ | username: $new_username | password: $new_password" > /dev/null 2>&1
else else
email_notification "OpenPanel Community ${version} successfully installed" "OpenAdmin URL: http://$server_hostname:2087/ | username: $new_username | password: $new_password" email_notification "OpenPanel Community ${version} successfully installed" "OpenAdmin URL: http://$server_hostname:2087/ | username: $new_username | password: $new_password" > /dev/null 2>&1
fi fi
@ -1293,7 +1292,7 @@ main
rm_helpers rm_helpers
send_install_log send_install_log
set_email_address_and_email_admin_logins
# END main script execution # END main script execution