fixes
This commit is contained in:
parent
fa8ec4c416
commit
ae16c9f27b
@ -41,3 +41,6 @@ build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}${IP}:3306${CL}"
|
||||
|
@ -3,7 +3,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/
|
||||
# Copyright (c) 2021-2025 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://redis.io/
|
||||
# Source: https://nodered.org
|
||||
|
||||
APP="Alpine-Node-Red"
|
||||
var_tags="${var_tags:-alpine;automation}"
|
||||
@ -21,20 +21,23 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
msg_info "Updating Alpine Packages"
|
||||
apk update && apk upgrade
|
||||
$STD apk update
|
||||
$STD apk upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
|
||||
msg_info "Updating Node.js and npm"
|
||||
apk upgrade nodejs npm
|
||||
$STD apk upgrade nodejs npm
|
||||
msg_ok "Updated Node.js and npm"
|
||||
|
||||
msg_info "Updating Node-RED"
|
||||
npm install -g --unsafe-perm node-red
|
||||
$STD npm install -g --unsafe-perm node-red
|
||||
msg_ok "Updated Node-RED"
|
||||
|
||||
msg_info "Restarting Node-RED"
|
||||
rc-service nodered restart
|
||||
$STD rc-service nodered restart
|
||||
msg_ok "Restarted Node-RED"
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
@ -42,5 +45,6 @@ build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${APP} should be reachable on port 1880.
|
||||
${BL}http://<your-ip>:1880${CL} \n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:1880${CL}"
|
||||
|
@ -21,16 +21,19 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
msg_info "Updating Alpine Packages"
|
||||
apk update && apk upgrade
|
||||
$STD apk update
|
||||
$STD apk upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
|
||||
msg_info "Updating PostgreSQL"
|
||||
apk upgrade postgresql postgresql-contrib
|
||||
$STD apk upgrade postgresql postgresql-contrib
|
||||
msg_ok "Updated PostgreSQL"
|
||||
|
||||
msg_info "Restarting PostgreSQL"
|
||||
rc-service postgresql restart
|
||||
$STD rc-service postgresql restart
|
||||
msg_ok "Restarted PostgreSQL"
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
@ -38,3 +41,6 @@ build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}${IP}:5432${CL}"
|
||||
|
@ -21,16 +21,19 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
msg_info "Updating Alpine Packages"
|
||||
apk update && apk upgrade
|
||||
$STD apk update
|
||||
$STD apk upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
|
||||
msg_info "Updating Prometheus"
|
||||
apk upgrade prometheus
|
||||
$STD apk upgrade prometheus
|
||||
msg_ok "Updated Prometheus"
|
||||
|
||||
msg_info "Restarting Prometheus"
|
||||
rc-service prometheus restart
|
||||
$STD rc-service prometheus restart
|
||||
msg_ok "Restarted Prometheus"
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
@ -38,3 +41,6 @@ build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9090${CL}"
|
||||
|
@ -20,25 +20,28 @@ color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
if [ ! -d /opt/tinyauth ]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit 1
|
||||
fi
|
||||
msg_info "Updating Alpine Packages"
|
||||
$STD apk update && apk upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
header_info
|
||||
if [ ! -d /opt/tinyauth ]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit 1
|
||||
fi
|
||||
msg_info "Updating Alpine Packages"
|
||||
$STD apk update
|
||||
$STD apk upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
|
||||
echo "DEBUG: CT_TYPE before update_script=${CT_TYPE:-UNDEFINED}"
|
||||
echo "DEBUG: var_unprivileged=${var_unprivileged:-UNDEFINED}"
|
||||
echo "DEBUG: CT_TYPE before update_script=${CT_TYPE:-UNDEFINED}"
|
||||
echo "DEBUG: var_unprivileged=${var_unprivileged:-UNDEFINED}"
|
||||
|
||||
msg_info "Updating tinyauth"
|
||||
$STD apk upgrade tinyauth
|
||||
msg_ok "Updated tinyauth"
|
||||
msg_info "Updating tinyauth"
|
||||
$STD apk upgrade tinyauth
|
||||
msg_ok "Updated tinyauth"
|
||||
|
||||
msg_info "Restarting tinyauth"
|
||||
$STD rc-service tinyauth restart
|
||||
msg_ok "Restarted tinyauth"
|
||||
msg_info "Restarting tinyauth"
|
||||
$STD rc-service tinyauth restart
|
||||
msg_ok "Restarted tinyauth"
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
@ -46,3 +49,6 @@ build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:xxxx${CL}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user