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
22cea3b0
You need to sign in or sign up before continuing.
Commit
22cea3b0
authored
Jan 28, 2019
by
Andrey Shatokhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed 'sed' compability with PATH_TO_CFG
parent
312d487f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
radio.sh
radio.sh
+1
-1
No files found.
radio.sh
View file @
22cea3b0
...
...
@@ -32,7 +32,7 @@ if [[ ! -f .'/'$1.mpd.conf ]];then
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
sed
-i
's?#1?'
$PATH_TO_CFG
'?'
/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