mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-11 13:52:51 +00:00
Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) (#2596)
* Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) * Update crafty-controller.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user