Commit Graph

2 Commits

Author SHA1 Message Date
Rasmus Villemoes
c2536883dd debian/prerm: add --system flag
I was wondering why my ~/.gitconfig would sometimes end up being owned
by root, with 0600 permissions, making git unable to read it and thus
interfering with my normal workflow. Looking at the mtime/ctime of
.gitconfig, I finally correlated it with

2018-09-20 09:55:47 upgrade git-lfs:amd64 2.5.1 2.5.2
2018-09-20 09:55:47 status half-configured git-lfs:amd64 2.5.1
2018-09-20 09:55:47 status unpacked git-lfs:amd64 2.5.1
2018-09-20 09:55:47 status half-installed git-lfs:amd64 2.5.1
2018-09-20 09:55:47 status half-installed git-lfs:amd64 2.5.1
2018-09-20 09:55:47 status unpacked git-lfs:amd64 2.5.2
2018-09-20 09:55:47 status unpacked git-lfs:amd64 2.5.2

in my dpkg.log. So while the postinst script does change the global git
config, the prerm script modifies the .gitconfig of whichever user did
the "apt-get upgrade".
2018-09-20 13:21:34 +02:00
Brett Randall
7c4db5710c Added postinst (git lfs install) and prerm (git lfs uninstall) scripts to Debian deb. These will run as root and so will operate at the new --system scope. 2016-06-30 12:01:48 +10:00