Skip to content

Commit

Permalink
Secure the config file, there may be credentials in there
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLG1979 committed Nov 25, 2021
1 parent c7d3965 commit d19228b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions raspotify/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -e

# Secure the config file, there may be credentials in there
if [ "$1" = "configure" ]; then
chmod 600 /etc/default/raspotify -f
fi

# Make sure `--linear-volume' is properly renamed
if [ -f /etc/default/raspotify ]; then
sed -i 's/--linear-volume/--volume-ctrl linear/' /etc/default/raspotify
Expand Down

0 comments on commit d19228b

Please sign in to comment.