From cbb2352b018dc4c2880fddc529b4a3aac7e75f28 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 29 Oct 2024 11:32:14 -0400 Subject: [PATCH] Avoid error if noded version doesn't work --- roles/base/templates/usr/local/sbin/update-motd.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 index cbc7a5c..43b85fc 100755 --- a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 +++ b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 @@ -15,7 +15,7 @@ NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )" VERSION_ID="$( cat /etc/debian_version )" VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )" DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\"" -PVCVER="$( /usr/share/pvc/pvcnoded.py --version )" +PVCVER="$( /usr/share/pvc/pvcnoded.py --version || echo 'Unknown' )" echo >> $TMPFILE echo -e "\033[01;34mParallel Virtual Cluster (PVC) Node\033[0m" >> $TMPFILE