summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/teamviewer
blob: b0d6267eb018d729c8545a867b0decc29e299875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
for file in /root/config/*; do [ -r $file ] && . $file; done
echo "$LB_PACKAGE_LISTS" | grep -qw teamviewer || exit 0
TMP=$(mktemp -d /tmp/teamviewer.XXXXXX)
wget -NP $TMP "http://www.teamviewer.com/download/teamviewer_linux.deb"
dpkg -i $TMP/*.deb
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -f -y install
rm -rf $TMP
/etc/init.d/teamviewerd stop || :
killall teamviewerd || :
while sleep 1; do pidof teamviewerd >/dev/null || break; done
cat <<"EOF" >/opt/teamviewer/config/global.conf
TeamViewer Global Settings
# It is not recommended to edit this file manually


[int32] EulaAccepted = 1
[int32] EulaAcceptedRevision = 6
EOF