Update node-red-dark.sh

pull/40/head
tteckster 2022-02-18 16:11:09 -05:00 committed by GitHub
parent a6359e4972
commit 121388aaf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 1 deletions

View File

@ -6,6 +6,7 @@ BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033' CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"` GN=`echo "\033[1;92m"`
CL=`echo "\033[m"` CL=`echo "\033[m"`
clear
echo -e "${RD}Backup your Node-Red flows before running this script!!${CL} \n " echo -e "${RD}Backup your Node-Red flows before running this script!!${CL} \n "
while true; do while true; do
read -p "This will Install midnight-red theme. Proceed(y/n)?" yn read -p "This will Install midnight-red theme. Proceed(y/n)?" yn
@ -27,7 +28,29 @@ npm install @node-red-contrib-themes/midnight-red &>/dev/null
echo -e "${CM}${CL} \r" echo -e "${CM}${CL} \r"
echo -en "${GN} Writing Settings... " echo -en "${GN} Writing Settings... "
cat <<EOF >> /root/.node-red/settings.js cat <<EOF > /root/.node-red/settings.js
module.exports = { uiPort: process.env.PORT || 1880,
mqttReconnectTime: 15000,
serialReconnectTime: 15000,
debugMaxLength: 1000,
functionGlobalContext: {
},
exportGlobalContextKeys: false,
// Configure the logging output
logging: {
console: {
level: "info",
metrics: false,
audit: false
}
},
// Customising the editor // Customising the editor
editorTheme: { editorTheme: {
theme: "midnight-red" theme: "midnight-red"