diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 16:39:28 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 16:39:28 +0100 |
commit | e2a48d8701f91b8e24fbe9e99e91eb72a87bb749 (patch) | |
tree | 726f70554b4ca985a09ef6e30a7fdc8df089993c /scripts/epgd-import-epglv | |
download | vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2 |
git init1.1.103
Diffstat (limited to 'scripts/epgd-import-epglv')
-rwxr-xr-x | scripts/epgd-import-epglv | 10 |
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';" |