Skip to content

Commit

Permalink
Fix jq crashing on numeric rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Nov 8, 2024
1 parent 8b4d702 commit 485b6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/seagl-setup-app
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ room_id="$(cat /var/lib/seagl/room-id)"

if [ "$arg" == obs ]; then
keyset=$(cat /var/lib/seagl/rtmp-keyset)
rtmp_key=$(get_config_value .rtmpKeys.$keyset.$room_id)
rtmp_key=$(get_config_value .rtmpKeys.$keyset.\"$room_id\")
sed -i "s/__YOUTUBE_STREAM_KEY__/$rtmp_key/" ~/.var/app/com.obsproject.Studio/config/obs-studio/basic/profiles/Untitled/service.json
start_and_link_app com.obsproject.Studio
elif [ "$arg" == nextcloud ]; then
Expand All @@ -41,7 +41,7 @@ elif [ "$arg" == nextcloud ]; then
start_and_link_app com.nextcloud.desktopclient.nextcloud
elif [ "$arg" == firefox ]; then
sudo sed -i "s;AV_TEST_RESULTS_PLACEHOLDER;$(get_config_value .avTestResultsSheetURL);" /etc/firefox/policies/policies.json
sudo sed -i "s;__ATTEND_PORTAL_CREDENTIALS__=t;userId=%40$(get_config_value .matrixCredentials.$room_id.user)%3A2024.seagl.org\&password=$(get_config_value .matrixCredentials.$room_id.password);" /etc/firefox/policies/policies.json
sudo sed -i "s;__ATTEND_PORTAL_CREDENTIALS__=t;userId=%40$(get_config_value .matrixCredentials.\"$room_id\".user)%3A2024.seagl.org\&password=$(get_config_value .matrixCredentials.\"$room_id\".password);" /etc/firefox/policies/policies.json
sudo sed -i "s;__REMOTE_SPEAKER_TALK_URLS_PLACEHOLDER__;$(get_config_value .remoteSpeakerJitsiURLs);" /etc/firefox/policies/policies.json
start_and_link_app org.mozilla.firefox
elif [ "$arg" == rclone ]; then
Expand Down

0 comments on commit 485b6d2

Please sign in to comment.