Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
var
/
lib
/
dpkg
/
info
/
/var/lib/dpkg/info/teamviewer.prerm
#!/bin/bash TV_VER="15" TV_PACKAGE_INSTALL="yes" TV_SCRIPT_DIR="/opt/teamviewer/tv_bin/script" source "$TV_SCRIPT_DIR/tvw_aux" source "$TV_SCRIPT_DIR/tvw_config" source "$TV_SCRIPT_DIR/tvw_daemon" function MainDEB() { local action="$1" local newver="$2" [ "$action" = 'remove' ] || [ "$action" = 'upgrade' ] || exit 0 removeDaemon [ "$action" = 'remove' ] && RemoveAssignment } function MainRPM() { local installCount="$1" local action=$(RPMAction) [ "$action" = 'remove' ] && removeDaemon # during upgrade, daemon is removed by install script [ "$action" = 'remove' ] && RemoveAssignment } function RPMAction() { case "$installCount" in ( 0 ) echo 'remove' ;; ( * ) echo 'upgrade' ;; # assume 1 esac } function RemoveAssignment() { echo 'Clearing assignments ...' $TV_BIN_DIR/teamviewerd --unmanage echo 'done' } [ "$TV_PKGTYPE" = 'DEB' ] && MainDEB "$@" [ "$TV_PKGTYPE" = 'RPM' ] && MainRPM "$@" true