Skip to content

Commit

Permalink
[Add] Run as btspeaker for security
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjapan committed Apr 23, 2017
1 parent 01639d6 commit e3d7c9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions bt_speaker.service 100644 → 100755
Expand Up @@ -6,6 +6,7 @@ TimeoutStartSec=0
WorkingDirectory=/opt/bt-speaker
ExecStart=/opt/bt-speaker/bt_speaker.py
Restart=always
User=btspeaker

[Install]
WantedBy=multi-user.target
3 changes: 3 additions & 0 deletions install.sh
Expand Up @@ -7,6 +7,9 @@ set -e
apt-get update
apt-get install git bluez python python-gobject python-cffi python-dbus python-alsaaudio python-configparser sound-theme-freedesktop vorbis-tools

# Add btspeaker user if not exist already
id -u btspeaker &>/dev/null || useradd btspeaker -G audio

# Download bt-speaker to /opt
cd /opt
git clone https://github.com/lukasjapan/bt-speaker.git
Expand Down

0 comments on commit e3d7c9b

Please sign in to comment.