mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
move control scripts from data/neutrino-scripts to data/control
Origin commit data
------------------
Branch: ni/coolstream
Commit: f74f2aef5c
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-26 (Sat, 26 Jan 2019)
Origin message was:
------------------
- move control scripts from data/neutrino-scripts to data/control
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
24
data/control/migration.sh
Normal file
24
data/control/migration.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /var/tuxbox/config
|
||||
if [ -e neutrino.conf ]; then
|
||||
# remove NG leftovers
|
||||
sed -i 's|ng_netfs_\(.*\)|netfs_\1|' neutrino.conf
|
||||
|
||||
# webradio_usr.xml was moved
|
||||
sed -i "s|/var/tuxbox/config/webradio_usr.xml|/var/tuxbox/webradio/webradio_usr.xml|" neutrino.conf
|
||||
mkdir -p /var/tuxbox/webradio/
|
||||
if [ -e /var/tuxbox/config/webradio_usr.xml ]; then
|
||||
mv /var/tuxbox/config/webradio_usr.xml /var/tuxbox/webradio/
|
||||
fi
|
||||
|
||||
# webtv_usr.xml was moved
|
||||
sed -i "s|/var/tuxbox/config/webtv_usr.xml|/var/tuxbox/webtv/webtv_usr.xml|" neutrino.conf
|
||||
mkdir -p /var/tuxbox/webtv/
|
||||
if [ -e /var/tuxbox/config/webtv_usr.xml ]; then
|
||||
mv /var/tuxbox/config/webtv_usr.xml /var/tuxbox/webtv/
|
||||
fi
|
||||
|
||||
sort neutrino.conf > neutrino.sort
|
||||
mv neutrino.sort neutrino.conf
|
||||
fi
|
Reference in New Issue
Block a user