diff --git a/janus-scripts/create-rooms b/janus-scripts/create-rooms.sh similarity index 68% rename from janus-scripts/create-rooms rename to janus-scripts/create-rooms.sh index 35e7fa50db552bf5b207a80fb17564e171a4915f..4eeceb369a29581b8b8bba29677b9e1534f8eac7 100755 --- a/janus-scripts/create-rooms +++ b/janus-scripts/create-rooms.sh @@ -17,13 +17,13 @@ for ((i=1; i<=$rooms; i++)); do room="room-100$i" if [ -z "$(grep $room $file)" ]; then echo " -$room: { - description = \"VNC $i Camera\" - publishers = 1 - bitrate = 128000 - fir_freq = 10 - record = false -}" >> $file + $room: { + description = \"VNC $i Camera\" + publishers = 1 + bitrate = 128000 + fir_freq = 10 + record = false + }" | sed -re 's/^\t{3}//' >> $file echo "Added entry for $room to $file" else echo "Entry for $room already in $file"