Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # MS-Teams wrapper
- #
- PAR=$1
- if [ -z ${PAR} ]
- then
- zenity --info --text="Brak parametru - TENANTU \nRobimy czysty." --no-wrap
- PAR=TEMPLATE
- else
- zenity --info --text="Wybrany TENANT: ${PAR}\nURUCHAMIAM..." --no-wrap
- fi
- cd ~/.config/Microsoft/
- # na wszelki wypadek wszystkie instancje kasujemy
- killall teams
- rm -rf "Microsoft Teams"
- case ${PAR} in
- ABIX)
- tar xzvf _tenat_abix.tgz
- teams
- ;;
- LE)
- tar xzvf _tenat_lepszaedu.tgz
- teams
- ;;
- STO2)
- tar xzvf _tenat_sto2.tgz
- teams
- ;;
- CMI)
- tar xzvf _tenat_cmi.tgz
- teams
- ;;
- TEMPLATE)
- tar xzvf _00_clean.tgz
- teams
- ;;
- *)
- zenity --info --text="Brak Tenantu: ${PAR}\nNIC nie robię..." --no-wrap
- ;;
- esac
- # autostart
- rm /home/adasiek/.config/autostart/teams.desktop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement