Updated description of emqx

Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
pull/1115/head
Gerard Hickey 2 years ago
parent 2c27ff2cfe
commit 943ecb63a5
  1. 33
      ct/emqx-v5.sh

@ -11,10 +11,10 @@ cat <<"EOF"
________ _______v5 _ __ ________ _______v5 _ __
/ ____/ |/ / __ \ | |/ / / ____/ |/ / __ \ | |/ /
/ __/ / /|_/ / / / / | / / __/ / /|_/ / / / / | /
/ /___/ / / / /_/ / / | / /___/ / / / /_/ / / |
/_____/_/ /_/\___\_\/_/|_| /_____/_/ /_/\___\_\/_/|_|
EOF EOF
} }
header_info header_info
@ -49,6 +49,27 @@ function error_handler() {
echo -e "\n$error_message\n" echo -e "\n$error_message\n"
} }
function ct_description() {
cat <<EOD
# ${APP} LXC
### https://tteck.github.io/Proxmox/
<a href='https://ko-fi.com/D1D7EP4GF'>
<img src='https://img.shields.io/badge/☕-Buy me a coffee-red' /></a>
Connect to ${APP} using the following URL
<pre>http://${NET}:18083</pre>
The initial login:
* username: <pre>admin</pre>
* password: <pre>public</pre>
EOD
}
function msg_info() { function msg_info() {
local msg="$1" local msg="$1"
echo -ne " ${HOLD} ${YW}${msg}..." echo -ne " ${HOLD} ${YW}${msg}..."
@ -379,9 +400,7 @@ pct start $CTID
msg_ok "Started LXC Container" msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC pct set $CTID -description "$(ct_description)"
### https://tteck.github.io/Proxmox/
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/☕-Buy me a coffee-red' /></a>"
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${APP} Setup should be reachable by going to the following URL. echo -e "${APP} Setup should be reachable by going to the following URL.
${BL}http://${IP}:18083${CL} \n" ${BL}http://${IP}:18083${CL} \n"

Loading…
Cancel
Save