#mkdir /var/enejejefaca

#TERM je unknown ko se zaganjamo iz beanshell iz symmetric-ds-a je TERM= "unknown", ce pa iz lxterminala je TERM=xterm-256color
#if [ "$TERM" = "unknown" ]; then
if [[ "$TERM" == *"xterm"* ]]; then
        WGET_OPT=" "
else
        #gremo v quiet, ce nismo iz xterm. V primeru ko ni terminala, se zabase output in se prenos ne konca
        WGET_OPT=" -q "
fi



apt remove anydesk -y 
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add - 
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list 
apt update 
apt install anydesk -y 
echo givelogin7 | anydesk --set-password

export DISPLAY=:0
killall -9 anydesk
cd /home/ROULETTE
./restartAnydesk.sh

anydesk --get-status

/home/ROULETTE/update_bin.sh 5 #update DB Template
/home/ROULETTE/schedule_db_repair2.sh

echo DONE DONE-


