Commit 22cea3b0 authored by Andrey Shatokhin's avatar Andrey Shatokhin

Changed 'sed' compability with PATH_TO_CFG

parent 312d487f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment