Update uninstall.sh

Add missing removals of installed files and directories
pull/22/head
BIBOLV 2019-04-25 23:32:28 +03:00 zatwierdzone przez GitHub
rodzic e8b8bd8da7
commit 884943a54e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 24 dodań i 0 usunięć

Wyświetl plik

@ -14,6 +14,12 @@ then
echo binaries: removed $ROOT/usr/bin/wmbusmeters and $ROOT/usr/sbin/wmbusmetersd
fi
if [ -f $ROOT/usr/share/man/man1/wmbusmeters.1.gz ]
then
rm $ROOT/usr/share/man/man1/wmbusmeters.1.gz
echo man page: removed $ROOT/usr/share/man/man1/wmbusmeters.1.gz
fi
ID=$(id -u wmbusmeters 2>/dev/null)
if [ ! "$ID" = "" ]
@ -22,6 +28,18 @@ then
echo user: removed wmbusmeters
fi
if [ -d $ROOT/var/log/wmbusmeters/ ]
then
rm -rf $ROOT/var/log/wmbusmeters/
echo log dir: removed $ROOT/var/log/wmbusmeters/
fi
if [ -f $ROOT/etc/logrotate.d/wmbusmeters ]
then
rm $ROOT/etc/logrotate.d/wmbusmeters
echo logrotate file: removed $ROOT/etc/logrotate.d/wmbusmeters
fi
if [ -f $ROOT/etc/wmbusmeters.conf ]
then
rm $ROOT/etc/wmbusmeters.conf
@ -39,3 +57,9 @@ then
rm $ROOT/etc/systemd/system/wmbusmeters.service
echo systemd: removed $ROOT/etc/systemd/system/wmbusmeters.service
fi
if [ -f $ROOT/etc/udev/rules.d/99-wmbus-usb-serial.rules ]
then
rm $ROOT/etc/udev/rules.d/99-wmbus-usb-serial.rules
echo udev: removed $ROOT/etc/udev/rules.d/99-wmbus-usb-serial.rules
fi