source: salt-libreoffice-addon/trunk/fuentes/debian/salt-libreoffice-addons.prerm @ 473

Last change on this file since 473 was 473, checked in by daduve, 3 years ago

Adding files

File size: 469 bytes
Line 
1#!/bin/sh
2
3set -e
4
5USER_TO_RUN_UNOPKG="root"
6
7AUX_SUDO_USER=$SUDO_USER
8SUDO_USER=$USER_TO_RUN_UNOPKG
9
10
11case $1 in
12        remove|purge|abort-install|disappear)
13                echo "Removing old salt plugins"
14                su $USER_TO_RUN_UNOPKG -c "unopkg remove --shared org.openoffice.Office.addon.salt.trad"  || true
15                su $USER_TO_RUN_UNOPKG -c "unopkg remove --shared org.openoffice.Office.addon.salt.util" || true
16                ;;
17        *)
18                echo "Nothing to do"
19                ;;
20esac
21
22SUDO_USER=$AUX_SUDO_USER
23#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.