kopia lustrzana https://github.com/weetmuts/wmbusmeters
Update uninstall.sh
Add missing removals of installed files and directoriespull/22/head
rodzic
e8b8bd8da7
commit
884943a54e
24
uninstall.sh
24
uninstall.sh
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue