diff options
Diffstat (limited to 'scripts/epgd-import-epglv')
-rwxr-xr-x | scripts/epgd-import-epglv | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/epgd-import-epglv b/scripts/epgd-import-epglv index 2d9df0c..27aeb1b 100755 --- a/scripts/epgd-import-epglv +++ b/scripts/epgd-import-epglv @@ -1,8 +1,7 @@ -#!/bin/bash +#!/bin/bash -if [ -z MYSQL_PWD ]; then - export MYSQL_PWD=epg -fi +MYSQL_PWD=${MYSQL_PWD:-epg} +export MYSQL_PWD mysql -u root -e "DROP FUNCTION IF EXISTS epglv;" mysql -u root -e "DROP FUNCTION IF EXISTS epglvr;" |