remote db for kodi
This commit is contained in:
parent
ea0c534d61
commit
94490fdb9c
3 changed files with 17 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/secrets.env
|
|
@ -1,3 +1,17 @@
|
||||||
<advancedsettings>
|
<advancedsettings>
|
||||||
|
<videodatabase>
|
||||||
|
<type>mysql</type>
|
||||||
|
<host>${DB_HOST}</host>
|
||||||
|
<port>${DB_PORT}</port>
|
||||||
|
<user>${DB_USER}</user>
|
||||||
|
<pass>${DB_PASS}</pass>
|
||||||
|
</videodatabase>
|
||||||
|
<musicdatabase>
|
||||||
|
<type>mysql</type>
|
||||||
|
<host>${DB_HOST}</host>
|
||||||
|
<port>${DB_PORT}</port>
|
||||||
|
<user>${DB_USER}</user>
|
||||||
|
<pass>${DB_PASS}</pass>
|
||||||
|
</musicdatabase>
|
||||||
<seeksteps>5, 10, 15, 20, 25, 30, 60, 120, 300</seeksteps>
|
<seeksteps>5, 10, 15, 20, 25, 30, 60, 120, 300</seeksteps>
|
||||||
</advancedsettings>
|
</advancedsettings>
|
||||||
|
|
3
init.sh
3
init.sh
|
@ -7,4 +7,5 @@ rm /home/htpc/.kodi/userdata/keymaps/keyboard.xml
|
||||||
ln /home/htpc/scripts/PJ/keyboard.xml /home/htpc/.kodi/userdata/keymaps/keyboard.xml
|
ln /home/htpc/scripts/PJ/keyboard.xml /home/htpc/.kodi/userdata/keymaps/keyboard.xml
|
||||||
|
|
||||||
rm /home/htpc/.kodi/userdata/advancedsettings.xml
|
rm /home/htpc/.kodi/userdata/advancedsettings.xml
|
||||||
ln /home/htpc/scripts/PJ/advancedsettings.xml /home/htpc/.kodi/userdata/advancedsettings.xml
|
export $(grep -v '^#' /home/htpc/scripts/PJ/secrets.env | xargs)
|
||||||
|
envsubst < /home/htpc/scripts/PJ/advancedsettings.xml > /home/htpc/.kodi/userdata/advancedsettings.xml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue