Skip to content

Commit

Permalink
Update diag.sh (#523)
Browse files Browse the repository at this point in the history
Added nodejs20
  • Loading branch information
Grothesk242 committed May 24, 2024
1 parent c918334 commit 4731d27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions diag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ clear;
echo "*** iob diag is starting up, please wait ***";
# VARIABLES
export LC_ALL=C;
SKRIPTV="2024-04-21"; #version of this script
NODE_MAJOR=18 #this is the recommended major nodejs version for ioBroker, please adjust accordingly if the recommendation changes
SKRIPTV="2024-05-22"; #version of this script
NODE_MAJOR=20 #this is the recommended major nodejs version for ioBroker, please adjust accordingly if the recommendation changes

HOST=$(hostname)
NODERECOM=$(iobroker state getValue system.host."$HOST".versions.nodeNewestNext); #recommended node version
Expand Down Expand Up @@ -212,7 +212,7 @@ echo -e "\033[34;107m*** Users and Groups ***\033[0m";
echo "";

echo -e "\033[34;107m*** Display-Server-Setup ***\033[0m";
XORGTEST=$(pgrep -c '[X]|[w]ayland|X11|wayfire')
XORGTEST=$(pgrep -cf '[X]|[w]ayland|X11|wayfire')
if [[ "$XORGTEST" -gt 0 ]];
then
echo -e "Display-Server: true"
Expand Down Expand Up @@ -617,7 +617,7 @@ echo -e "Installation: \t\t$INSTENV2";
echo -e "Kernel: \t\t$(uname -m)";
echo -e "Userland: \t\t$(getconf LONG_BIT) bit";
if [ -f "$DOCKER" ]; then
echo -e "Timezone: \t\t$(cat /etc/timezone)"
echo -e "Timezone: \t\t$(date +"%Z %z")"
else
echo -e "Timezone: \t\t$(timedatectl | grep zone | cut -c28-80)";
fi;
Expand Down

0 comments on commit 4731d27

Please sign in to comment.