summaryrefslogtreecommitdiff
path: root/scripts/epgd-import-epglv
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:39:28 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:39:28 +0100
commite2a48d8701f91b8e24fbe9e99e91eb72a87bb749 (patch)
tree726f70554b4ca985a09ef6e30a7fdc8df089993c /scripts/epgd-import-epglv
downloadvdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz
vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2
git init1.1.103
Diffstat (limited to 'scripts/epgd-import-epglv')
-rwxr-xr-xscripts/epgd-import-epglv10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/epgd-import-epglv b/scripts/epgd-import-epglv
new file mode 100755
index 0000000..2d9df0c
--- /dev/null
+++ b/scripts/epgd-import-epglv
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ -z MYSQL_PWD ]; then
+ export MYSQL_PWD=epg
+fi
+
+mysql -u root -e "DROP FUNCTION IF EXISTS epglv;"
+mysql -u root -e "DROP FUNCTION IF EXISTS epglvr;"
+mysql -u root -e "CREATE FUNCTION epglv RETURNS INT SONAME 'mysqlepglv.so';"
+mysql -u root -e "CREATE FUNCTION epglvr RETURNS INT SONAME 'mysqlepglv.so';"