forked from switnet/quick-jibri-installer
Improve chromedriver detection
Also improve versioning for upgrade evaluation
This commit is contained in:
parent
a937022a5e
commit
9034110337
|
@ -11,7 +11,7 @@ apt_repo="/etc/apt/sources.list.d"
|
||||||
jibri_packages=$(grep Package /var/lib/apt/lists/download.jitsi.org_*_Packages | sort -u | awk '{print $2}' | paste -s -d ' ')
|
jibri_packages=$(grep Package /var/lib/apt/lists/download.jitsi.org_*_Packages | sort -u | awk '{print $2}' | paste -s -d ' ')
|
||||||
LocRec="on"
|
LocRec="on"
|
||||||
CHD_LST=$(curl -sL https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
|
CHD_LST=$(curl -sL https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
|
||||||
CHDB=/usr/local/bin/chromedriver
|
CHDB=$(whereis chromedriver | awk '{print$2}')
|
||||||
DOMAIN=$(ls /etc/prosody/conf.d/ | grep -v localhost | awk -F'.cfg' '{print $1}' | awk '!NF || !seen[$0]++')
|
DOMAIN=$(ls /etc/prosody/conf.d/ | grep -v localhost | awk -F'.cfg' '{print $1}' | awk '!NF || !seen[$0]++')
|
||||||
INT_CONF=/usr/share/jitsi-meet/interface_config.js
|
INT_CONF=/usr/share/jitsi-meet/interface_config.js
|
||||||
if [ -f $apt_repo/google-chrome.list ]; then
|
if [ -f $apt_repo/google-chrome.list ]; then
|
||||||
|
@ -19,10 +19,10 @@ if [ -f $apt_repo/google-chrome.list ]; then
|
||||||
else
|
else
|
||||||
echo "Seems no Google repo installed"
|
echo "Seems no Google repo installed"
|
||||||
fi
|
fi
|
||||||
if [ -f $CHDB ]; then
|
if [ -z $CHDB ]; then
|
||||||
CHD_AVB=$(chromedriver -v | awk '{print $2}' | cut -d . -f "1,2")
|
echo "Seems no chromedriver installed"
|
||||||
else
|
else
|
||||||
echo "Seems no chromedriver installed"
|
CHD_AVB=$(chromedriver -v | awk '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
|
version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
|
||||||
|
|
Loading…
Reference in New Issue