Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Sam Heinz
2025-03-04 17:44:55 +10:00
273 changed files with 4157 additions and 1229 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then
msg_info "Installing NPM"
apt-get install -y npm >/dev/null 2>&1
$STD apt-get install -y npm
msg_ok "Installed NPM"
fi
fi
@@ -44,7 +44,7 @@ function update_script() {
msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}"
npm install -g --unsafe-perm node-red &>/dev/null
$STD npm install -g --unsafe-perm node-red
msg_ok "Updated ${APP}"
msg_info "Starting ${APP}"
@@ -84,7 +84,7 @@ function update_script() {
msg_info "Installing ${THEME} Theme"
cd /root/.node-red
sed -i 's|// theme: ".*",|theme: "",|g' /root/.node-red/settings.js
npm install @node-red-contrib-themes/theme-collection &>/dev/null
$STD npm install @node-red-contrib-themes/theme-collection
sed -i "{s/theme: ".*"/theme: '${THEME}',/g}" /root/.node-red/settings.js
systemctl restart nodered
msg_ok "Installed ${THEME} Theme"