Cleanup database & config on install and remove

* Cleanup local database on installation
* Cleanup local configuration on removal
This commit is contained in:
abraunegg 2018-04-16 14:17:16 +10:00
parent 5cb92c01b9
commit 961e7ada3d

View file

@ -29,6 +29,7 @@ install: all
mkdir -p /var/log/onedrive
chown root.users /var/log/onedrive
chmod 0775 /var/log/onedrive
rm -f ~/.config/onedrive/items.sqlite3
onedrive: version $(SOURCES)
$(DC) $(DFLAGS) $(SOURCES)
@ -42,6 +43,7 @@ uninstall:
rm -f $(DESTDIR)/usr/lib/systemd/user/onedrive.service
rm -f $(DESTDIR)/usr/lib/systemd/user/onedrive@.service
rm -f /etc/logrotate.d/onedrive
rm -rf ~/.config/onedrive
version: .git/HEAD .git/index
echo $(shell git describe --tags) >version