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
312d487f
Commit
312d487f
authored
Jan 28, 2019
by
Andrey Shatokhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PATH_TO_CFG in radio.sh
parent
e4d183a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
radio.sh
radio.sh
+4
-2
No files found.
radio.sh
View file @
312d487f
...
...
@@ -29,8 +29,10 @@ if [[ ! -f .'/'$1.mpd.conf ]];then
chmod
-R
777 .
'/'
$1
chmod
+x .
'/'
$1
/playlists
echo
"Файлы конфигураций cозданы успешно !"
cp
template.service /etc/systemd/system
'/'
$1
.service
sed
-i
"s/#1/
`
pwd
`
/
$1
.mpd.conf/g"
/etc/systemd/system
'/'
$1
.service
cp
template.service /etc/systemd/system
'/'
$1
.service
PATH_TO_CFG
=
`
pwd
`
/
$1
.mpd.conf
sed
-i
"s/#1/
$PATH_TO_CFG
/g"
/etc/systemd/system
'/'
$1
.service
echo
PORT
=
$((
PORT+1
))
>
./.port
systemctl daemon-reload
systemctl start
$1
.service
...
...
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