Skip to content

Commit 506c5d4

Browse files
authored
get chrome version from chrome -version
this retrieves the version without the need for sudo, which causes problems when you deploy in a container environment with tighter security guidelines like openshift.
1 parent fe860cb commit 506c5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeChrome/generate_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
CHROME_VERSION=$( sudo dpkg -s google-chrome-stable | grep Version | cut -d " " -f 2 | cut -d "-" -f 1 )
3+
CHROME_VERSION=$(/opt/google/chrome/chrome -version | awk '{ print $3 }')
44

55
cat <<_EOF
66
{

0 commit comments

Comments
 (0)