Skip to content

Commit 2f19b3b

Browse files
committed
try to get correct name to show up
1 parent c1931c5 commit 2f19b3b

6 files changed

Lines changed: 8 additions & 279 deletions

File tree

.github/workflows/docker-image-fixed.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

docker-compose-final.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

docker-compose-fixed.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

docker-compose-new.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

docker-compose.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ services:
6060
- AIRPLAY_NAME=${AIRPLAY_NAME:-HomeSpeaker}
6161
command: |
6262
sh -c "
63-
# Set AirPlay name from environment variable
64-
AIRPLAY_NAME=\"$${AIRPLAY_NAME:-HomeSpeaker}\"
63+
# Debug: Show what name we're using
64+
echo \"Using AirPlay name: \$$AIRPLAY_NAME\"
6565
6666
# Create state management scripts inside container
6767
cat > /usr/local/bin/airplay-start.sh << 'EOF'
@@ -78,9 +78,12 @@ services:
7878
7979
chmod +x /usr/local/bin/airplay-start.sh
8080
chmod +x /usr/local/bin/airplay-stop.sh
81+
# Update the config file with the correct name
82+
sed -i \"s/AIRPLAY_NAME_PLACEHOLDER/\$$AIRPLAY_NAME/g\" /etc/shairport-sync.conf
8183
82-
# Update the config file with the correct name
83-
sed -i \"s/name = \\\"HomeSpeaker\\\"/name = \\\"$$AIRPLAY_NAME\\\"/g\" /etc/shairport-sync.conf
84+
# Debug: Show the updated config
85+
echo \"Updated config:\"
86+
grep 'name =' /etc/shairport-sync.conf
8487
8588
# Start shairport-sync
8689
exec shairport-sync -c /etc/shairport-sync.conf

shairport-sync.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ShairportSync configuration for HomeSpeaker
22
general = {
3-
name = "HomeSpeaker";
3+
name = "AIRPLAY_NAME_PLACEHOLDER";
44
interpolation = "soxr";
55
output_backend = "pulse";
66
mixer_control_name = "PCM";

0 commit comments

Comments
 (0)