Deiban package: postinst script access /home/*
The postinst script inside the debian package for Discord contains the following code:
# This is probably just paranoia, but some people claim that clearing out
# cache and/or the sock file fixes bugs for them, so here we go
for DIR in /home/* ; do
rm -rf "$DIR/.config/discordstable/Cache"
rm -rf "$DIR/.config/discordstable/GPUCache"
done
In an environment (NFS mounted homes) where root does not have access to /home/ the package fails to install. To install discord I have to remove the postinst script before installing it anywhere.
Ideally, I think this code should be moved to when Discord is started and it detects that the version number has changed.
-
The postinst script still exists as of version 0.0.13 (2020-12-07). Please move this code to the actual client when it launches.
0
Please sign in to leave a comment.
Comments
1 comment