Commit 312d487f authored by Andrey Shatokhin's avatar Andrey Shatokhin

Added PATH_TO_CFG in radio.sh

parent e4d183a5
......@@ -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
......
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