Skip to content

Commit d19228b

Browse files
committed
Secure the config file, there may be credentials in there
1 parent c7d3965 commit d19228b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

raspotify/DEBIAN/postinst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
set -e
44

5+
# Secure the config file, there may be credentials in there
6+
if [ "$1" = "configure" ]; then
7+
chmod 600 /etc/default/raspotify -f
8+
fi
9+
510
# Make sure `--linear-volume' is properly renamed
611
if [ -f /etc/default/raspotify ]; then
712
sed -i 's/--linear-volume/--volume-ctrl linear/' /etc/default/raspotify

0 commit comments

Comments
 (0)