mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
c979faa719
...
dc556414f0
Author | SHA1 | Date |
---|---|---|
|
dc556414f0 | |
|
91ab250a3d | |
|
d9f27eeff7 |
|
@ -136,4 +136,4 @@ msg_ok "Completed Successfully!\n"
|
|||
echo -e "${APP} should be reachable by going to the following URL.
|
||||
${BL}http://${IP}:8123${CL}
|
||||
Portainer should be reachable by going to the following URL.
|
||||
${BL}http://${IP}:9000${CL}\n"
|
||||
${BL}https://${IP}:9443${CL}\n"
|
||||
|
|
|
@ -81,24 +81,39 @@ exit
|
|||
fi
|
||||
if [ "$UPD" == "2" ]; then
|
||||
THEME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "NODE-RED THEMES" --radiolist --cancel-button Exit-Script "Choose Theme" 15 58 6 \
|
||||
"aurora" "" OFF \
|
||||
"cobalt2" "" OFF \
|
||||
"dark" "" OFF \
|
||||
"dracula" "" OFF \
|
||||
"espresso-libre" "" OFF \
|
||||
"github-dark" "" OFF \
|
||||
"github-dark-default" "" OFF \
|
||||
"github-dark-dimmed" "" OFF \
|
||||
"midnight-red" "" ON \
|
||||
"monoindustrial" "" OFF \
|
||||
"monokai" "" OFF \
|
||||
"monokai-dimmed" "" OFF \
|
||||
"noctis" "" OFF \
|
||||
"oceanic-next" "" OFF \
|
||||
"oled" "" OFF \
|
||||
"one-dark-pro" "" OFF \
|
||||
"one-dark-pro-darker" "" OFF \
|
||||
"solarized-dark" "" OFF \
|
||||
"solarized-light" "" OFF \
|
||||
"tokyo-night" "" OFF \
|
||||
"tokyo-night-light" "" OFF \
|
||||
"tokyo-night-storm" "" OFF \
|
||||
"totallyinformation" "" OFF \
|
||||
"zenburn" "" OFF \
|
||||
3>&1 1>&2 2>&3)
|
||||
header_info
|
||||
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} &>/dev/null
|
||||
sed -i 's|// theme: ".*",|theme: "",|g' /root/.node-red/settings.js
|
||||
npm install @node-red-contrib-themes/theme-collection &>/dev/null
|
||||
sed -i "{s/theme: ".*"/theme: '${THEME}',/g}" /root/.node-red/settings.js
|
||||
msg_ok "Installed ${THEME} Theme"
|
||||
|
||||
msg_info "Restarting ${APP}"
|
||||
systemctl restart nodered
|
||||
msg_ok "Restarted ${APP}"
|
||||
msg_ok "Installed ${THEME} Theme"
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue