Skip to content

Commit

Permalink
Show BELABOX image version, if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rationalsa committed Jan 25, 2022
1 parent a958afa commit 966fc1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions belaUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ try {
}
revisions['belacoder'] = getRevision(`${belacoderExec} -v`);
revisions['srtla'] = getRevision(`${srtlaSendExec} -v`);
// Only show a BELABOX image version if it exists
try {
revisions['BELABOX image'] = fs.readFileSync('/etc/belabox_img_version', 'utf8').trim();
} catch(err) {};
console.log(revisions);

let config;
Expand Down

0 comments on commit 966fc1c

Please sign in to comment.