diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 19:58:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 19:58:06 -0300 |
commit | 63ee798f1f6c6a58165f328027cc3f427535c447 (patch) | |
tree | 6df949e694d559ccbff2179acbca29bdf033f83e /lib/httracker | |
parent | 084887f69ef9229da3c8e2d09c34839ca8180aef (diff) | |
download | httruta-63ee798f1f6c6a58165f328027cc3f427535c447.tar.gz httruta-63ee798f1f6c6a58165f328027cc3f427535c447.tar.bz2 |
Moving functions to lib
Diffstat (limited to 'lib/httracker')
-rw-r--r-- | lib/httracker/functions | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions index 0d3293a..ea9a7fa 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -61,3 +61,16 @@ function httracker_target_single { target=${MIRRORDIR}/${year}/${month} sudo -u links mkdir -p ${target} } + +function httracker_scuttle_config() { + grep ${1} ${CONFIGFILE} | sed -e s/\[^\'\]\*\'// -e s/\'\.\*\$// +} + +httracker_sqlquery() { + mysql --skip-column-names --batch \ + --user=${dbuser} \ + --password=${dbpass} \ + --database=${dbname} \ + --host=${dbhost} \ + --execute="${1}" +} |