mirror of
https://github.com/Burningstone91/smart-home-setup.git
synced 2022-05-05 21:16:50 +03:00
11 lines
339 B
Bash
Executable File
11 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
credentials=""
|
|
if [[ -n "${USERNAME:-}" ]] && [[ -n "${PASSWORD:-}" ]]; then
|
|
credentials="\&username=$USERNAME\&password=$PASSWORD"
|
|
fi
|
|
|
|
#sed "/'\[stream\]'/a 'source = librespot:///librespot?name=Spotify\&devicename=$DEVICE_NAME\&bitrate=320\&volume=100$credentials'" /etc/snapserver.conf
|
|
|
|
exec snapserver |