Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
radio_mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
azbyka
radio_mpd
Commits
eab2d3e9
Commit
eab2d3e9
authored
Jan 28, 2019
by
Andrey Shatokhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed template.mpd.conf and radio.sh
parent
208686aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
.port
.port
+1
-1
radio.sh
radio.sh
+3
-3
No files found.
.port
View file @
eab2d3e9
PORT=6
690
PORT=6
714
radio.sh
View file @
eab2d3e9
...
...
@@ -26,7 +26,7 @@ if [[ ! -f ./$1.mpd.conf ]];then
sed
-i
"s/#2/
$PORT
/g"
$ICECAST_DIR
/
$1
.mpd.conf
chown
-R
icecastradio
$ICECAST_DIR
/
$1
chgrp
-R
icecastradio
$ICECAST_DIR
/
$1
chmod
-R
777 ICECAST_DIR/
$1
chmod
-R
777
$
ICECAST_DIR
/
$1
chmod
+x
$ICECAST_DIR
/
$1
/playlists
echo
"Файлы конфигураций cозданы успешно !"
...
...
@@ -35,8 +35,8 @@ if [[ ! -f ./$1.mpd.conf ]];then
sed
-i
's?#1?'
$PATH_TO_CFG
'?'
/etc/systemd/system/
$1
.service
echo
PORT
=
$((
PORT+1
))
>
$ICECAST_DIR
/.port
systemctl daemon-reload
systemctl start
$1
.service
systemctl
enable
/etc/systemd/system/
$1
.service
systemctl start
$1
systemctl
enable
/etc/systemd/system/
$1
echo
"Запущен mpd-поток под названием :
$1
по адресу : radio.azbyka.ru:8000/
$PORT
"
echo
"Для начала работы требуется обновить базу данных mpd"
echo
"Для работа с потоком : ./radio <название потока>"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment