mirror of
https://github.com/mistergibson/radio.git
synced 2026-09-08 22:09:51 -07:00
cleanup
This commit is contained in:
parent
30aeaa4b21
commit
cc76d6e9c2
2 changed files with 18 additions and 7 deletions
|
|
@ -28,6 +28,8 @@ mkdir -p "${STORAGE_PATH}"/{music,podcasts,jingles,announcements,state,playlists
|
|||
chown -R liquidsoap:liquidsoap "${STORAGE_PATH}" 2>/dev/null || true
|
||||
|
||||
# --- Collect Icecast credentials ------------------------------------------
|
||||
read -rp "Icecast host [127.0.0.1]: " IC_HOST
|
||||
IC_HOST="${IC_HOST:-127.0.0.1}"
|
||||
read -rp "Icecast source port [7777]: " IC_PORT
|
||||
IC_PORT="${IC_PORT:-7777}"
|
||||
read -rp "Icecast mount [/radio.mp3]: " IC_MOUNT
|
||||
|
|
@ -62,7 +64,7 @@ cat > "$CONFIG_FILE" <<EOF
|
|||
{
|
||||
"storage": "${STORAGE_PATH}",
|
||||
"icecast": {
|
||||
"host": "127.0.0.1",
|
||||
"host": "${IC_HOST}",
|
||||
"port": ${IC_PORT},
|
||||
"mount": "${IC_MOUNT}",
|
||||
"username": "${IC_USER}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue