config:zoom
Zoom
sudo apt-get install libxcb-cursor0
vi /usr/local/bin/zoomupdate.sh
- /usr/local/bin/zoomupdate.sh
#!/bin/bash if [ "$LOGNAME" != "root" ] then echo "Zoom client updater needs to be run as root!" exit fi function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; } #get latest zoom version number for x64 linux on the web VER_LATEST=$(curl -s -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" "https://zoom.us/rest/download?os=linux" | sed 's/.*"zoom":{"version":"\([0-9.]*\)".*/\1/') #get latest installed zoom version VER_INST=$(dpkg -s zoom | grep -i version | grep -v "Config-Version" | sed 's/.* \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/') if [[ "$VER_INST" == "" ]]; then VER_INST=0 fi #download and install only if web version greater than current version #if main web version doesn't exist, then install new main version if [ $(version $VER_INST) -lt $(version $VER_LATEST) ]; then echo "Current Zoom version $VER_INST, upgrading to version $VER_LATEST" cd /tmp/ wget https://zoom.us/client/latest/zoom_amd64.deb apt-get install libxcb-xtest0 ibus dpkg -i zoom_amd64.deb rm zoom_amd64.deb else echo "Current Version $VER_INST, available version $VER_LATEST" echo "No upgrade necessary" fi
Add to daily cron for auto-update:
- /etc/cron.daily/zoomupdatecron
#!/bin/sh echo `date` >> /var/log/zoomupdate.log /usr/local/bin/zoomupdate.sh 2>&1 >> /var/log/zoomupdate.log echo >> /var/log/zoomupdate.log
chmod 755 /usr/local/bin/zoomupdate.sh chmod 755 /etc/cron.daily/zoomupdatecron
config/zoom.txt · Last modified: 2023/05/29 11:55 by 127.0.0.1